public function getExamensJoinActividad($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) { if ($criteria === null) { $criteria = new Criteria(PeriodoPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collExamens === null) { if ($this->isNew()) { $this->collExamens = array(); } else { $criteria->add(ExamenPeer::FK_PERIODO_ID, $this->id); $this->collExamens = ExamenPeer::doSelectJoinActividad($criteria, $con, $join_behavior); } } else { $criteria->add(ExamenPeer::FK_PERIODO_ID, $this->id); if (!isset($this->lastExamenCriteria) || !$this->lastExamenCriteria->equals($criteria)) { $this->collExamens = ExamenPeer::doSelectJoinActividad($criteria, $con, $join_behavior); } } $this->lastExamenCriteria = $criteria; return $this->collExamens; }
public static function retrieveByPKs($pks, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(ExamenPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(ExamenPeer::DATABASE_NAME); $criteria->add(ExamenPeer::ID, $pks, Criteria::IN); $objs = ExamenPeer::doSelect($criteria, $con); } return $objs; }
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) { $keys = ExamenPeer::getFieldNames($keyType); if (array_key_exists($keys[0], $arr)) { $this->setId($arr[$keys[0]]); } if (array_key_exists($keys[1], $arr)) { $this->setFkEscalanotaId($arr[$keys[1]]); } if (array_key_exists($keys[2], $arr)) { $this->setFkAlumnoId($arr[$keys[2]]); } if (array_key_exists($keys[3], $arr)) { $this->setFkActividadId($arr[$keys[3]]); } if (array_key_exists($keys[4], $arr)) { $this->setFkPeriodoId($arr[$keys[4]]); } if (array_key_exists($keys[5], $arr)) { $this->setNombre($arr[$keys[5]]); } if (array_key_exists($keys[6], $arr)) { $this->setObservacion($arr[$keys[6]]); } if (array_key_exists($keys[7], $arr)) { $this->setFecha($arr[$keys[7]]); } }