Exemplo n.º 1
0
 public function executeList()
 {
     $this->collaborations = CollaborationPeer::doSelect(new Criteria());
 }
 public static function retrieveByPKs($pks, $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(self::DATABASE_NAME);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria();
         $criteria->add(CollaborationPeer::ID, $pks, Criteria::IN);
         $objs = CollaborationPeer::doSelect($criteria, $con);
     }
     return $objs;
 }