/**
  * Retrieve multiple objects by pkey.
  *
  * @param      array $pks List of primary keys
  * @param      PropelPDO $con the connection to use
  * @throws     PropelException Any exceptions caught during processing will be
  *		 rethrown wrapped into a PropelException.
  */
 public static function retrieveByPKs($pks, PropelPDO $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(CcShowRebroadcastPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(CcShowRebroadcastPeer::DATABASE_NAME);
         $criteria->add(CcShowRebroadcastPeer::ID, $pks, Criteria::IN);
         $objs = CcShowRebroadcastPeer::doSelect($criteria, $con);
     }
     return $objs;
 }
Ejemplo n.º 2
0
 /**
  * Method to invalidate the instance pool of all tables related to cc_show
  * by a foreign key with ON DELETE CASCADE
  */
 public static function clearRelatedInstancePool()
 {
     // Invalidate objects in CcShowInstancesPeer instance pool,
     // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
     CcShowInstancesPeer::clearInstancePool();
     // Invalidate objects in CcShowDaysPeer instance pool,
     // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
     CcShowDaysPeer::clearInstancePool();
     // Invalidate objects in CcShowRebroadcastPeer instance pool,
     // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
     CcShowRebroadcastPeer::clearInstancePool();
     // Invalidate objects in CcShowHostsPeer instance pool,
     // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
     CcShowHostsPeer::clearInstancePool();
 }