Exemple #1
0
 public static function retrieveByPK($pk, PropelPDO $con = null)
 {
     if (isset($cache[$pk])) {
         return $cache[$pk];
     } else {
         return $cache[$pk] = parent::retrieveByPK($pk, $con);
     }
 }
Exemple #2
0
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     self::$instances = array();
 }