Example #1
0
 /**
  * Method to invalidate the instance pool of all tables related to _books     * by a foreign key with ON DELETE CASCADE
  */
 public static function clearRelatedInstancePool()
 {
     // Invalidate objects in related instance pools,
     // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
     RBatchForbookTableMap::clearInstancePool();
     RRightsForbookTableMap::clearInstancePool();
     RTemplatenamesForbookTableMap::clearInstancePool();
     FormatsTableMap::clearInstancePool();
     IssuesTableMap::clearInstancePool();
 }
Example #2
0
 /**
  * Method to invalidate the instance pool of all tables related to users     * by a foreign key with ON DELETE CASCADE
  */
 public static function clearRelatedInstancePool()
 {
     // Invalidate objects in related instance pools,
     // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
     RRightsForuserTableMap::clearInstancePool();
     BooksTableMap::clearInstancePool();
     ContributionsTableMap::clearInstancePool();
     DataTableMap::clearInstancePool();
     FormatsTableMap::clearInstancePool();
     IssuesTableMap::clearInstancePool();
 }