/** * @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); }
/** * Clear the instance pool. * * @return void */ public static function clearInstancePool() { foreach (self::$instances as $instance) { $instance->clearAllReferences(false); } self::$instances = array(); }