Beispiel #1
0
 public function getAbsence($criteria = null, $con = null)
 {
     $c = new Criteria();
     $c->add(AbsencePeer::STUDENT_ID, $this->getId());
     return AbsencePeer::doSelect($c);
 }
Beispiel #2
0
 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(AbsencePeer::ID, $pks, Criteria::IN);
         $objs = AbsencePeer::doSelect($criteria, $con);
     }
     return $objs;
 }