public static function retrieveByPKs($pks, PropelPDO $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(RelCalendariovacunacionAlumnoPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(RelCalendariovacunacionAlumnoPeer::DATABASE_NAME);
         $criteria->add(RelCalendariovacunacionAlumnoPeer::ID, $pks, Criteria::IN);
         $objs = RelCalendariovacunacionAlumnoPeer::doSelect($criteria, $con);
     }
     return $objs;
 }
Exemplo n.º 2
0
 public function getRelCalendariovacunacionAlumnosJoinAlumno($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
 {
     if ($criteria === null) {
         $criteria = new Criteria(CalendariovacunacionPeer::DATABASE_NAME);
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collRelCalendariovacunacionAlumnos === null) {
         if ($this->isNew()) {
             $this->collRelCalendariovacunacionAlumnos = array();
         } else {
             $criteria->add(RelCalendariovacunacionAlumnoPeer::FK_CALENDARIOVACUNACION_ID, $this->id);
             $this->collRelCalendariovacunacionAlumnos = RelCalendariovacunacionAlumnoPeer::doSelectJoinAlumno($criteria, $con, $join_behavior);
         }
     } else {
         $criteria->add(RelCalendariovacunacionAlumnoPeer::FK_CALENDARIOVACUNACION_ID, $this->id);
         if (!isset($this->lastRelCalendariovacunacionAlumnoCriteria) || !$this->lastRelCalendariovacunacionAlumnoCriteria->equals($criteria)) {
             $this->collRelCalendariovacunacionAlumnos = RelCalendariovacunacionAlumnoPeer::doSelectJoinAlumno($criteria, $con, $join_behavior);
         }
     }
     $this->lastRelCalendariovacunacionAlumnoCriteria = $criteria;
     return $this->collRelCalendariovacunacionAlumnos;
 }
 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
 {
     $keys = RelCalendariovacunacionAlumnoPeer::getFieldNames($keyType);
     if (array_key_exists($keys[0], $arr)) {
         $this->setId($arr[$keys[0]]);
     }
     if (array_key_exists($keys[1], $arr)) {
         $this->setFkAlumnoId($arr[$keys[1]]);
     }
     if (array_key_exists($keys[2], $arr)) {
         $this->setFkCalendariovacunacionId($arr[$keys[2]]);
     }
     if (array_key_exists($keys[3], $arr)) {
         $this->setObservacion($arr[$keys[3]]);
     }
     if (array_key_exists($keys[4], $arr)) {
         $this->setComprobante($arr[$keys[4]]);
     }
     if (array_key_exists($keys[5], $arr)) {
         $this->setFecha($arr[$keys[5]]);
     }
 }