コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     RecipePeer::$instances = array();
     RecipeStepsPeer::$instances = array();
     UserPeer::$instances = array();
     countryPeer::$instances = array();
     ingredientPeer::$instances = array();
     ingredientTypePeer::$instances = array();
     recipeTypePeer::$instances = array();
     unitPeer::$instances = array();
 }
コード例 #2
0
ファイル: BaseUserPeer.php プロジェクト: eddypre/Quirofano
 /**
  * Clear the instance pool.
  *
  * @return void
  */
 public static function clearInstancePool()
 {
     UserPeer::$instances = array();
 }
コード例 #3
0
ファイル: BaseUserPeer.php プロジェクト: rapila/cms-base
 /**
  * Clear the instance pool.
  *
  * @return void
  */
 public static function clearInstancePool($and_clear_all_references = false)
 {
     if ($and_clear_all_references) {
         foreach (UserPeer::$instances as $instance) {
             $instance->clearAllReferences(true);
         }
     }
     UserPeer::$instances = array();
 }