Beispiel #1
0
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     foreach (self::$instances as $instance) {
         $instance->clearAllReferences(false);
     }
     self::$instances = array();
 }
Beispiel #2
0
 /**
  * @param Criteria $criteria
  * @param PropelPDO $con
  */
 public static function doSelect(Criteria $criteria, PropelPDO $con = null)
 {
     $c = clone $criteria;
     if ($c instanceof KalturaCriteria) {
         $c->applyFilters();
         $criteria->setRecordsCount($c->getRecordsCount());
     }
     return parent::doSelect($c, $con);
 }
Beispiel #3
0
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     self::$instances = array();
 }