public function getLegajosaludsJoinUsuario($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) { if ($criteria === null) { $criteria = new Criteria(AlumnoPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collLegajosaluds === null) { if ($this->isNew()) { $this->collLegajosaluds = array(); } else { $criteria->add(LegajosaludPeer::FK_ALUMNO_ID, $this->id); $this->collLegajosaluds = LegajosaludPeer::doSelectJoinUsuario($criteria, $con, $join_behavior); } } else { $criteria->add(LegajosaludPeer::FK_ALUMNO_ID, $this->id); if (!isset($this->lastLegajosaludCriteria) || !$this->lastLegajosaludCriteria->equals($criteria)) { $this->collLegajosaluds = LegajosaludPeer::doSelectJoinUsuario($criteria, $con, $join_behavior); } } $this->lastLegajosaludCriteria = $criteria; return $this->collLegajosaluds; }
public static function retrieveByPKs($pks, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(LegajosaludPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(LegajosaludPeer::DATABASE_NAME); $criteria->add(LegajosaludPeer::ID, $pks, Criteria::IN); $objs = LegajosaludPeer::doSelect($criteria, $con); } return $objs; }
public function executeDelete() { $alumno_id = $this->getRequestParameter('aid'); $this->legajosalud = LegajosaludPeer::retrieveByPk($this->getRequestParameter('id')); $this->forward404Unless($this->legajosalud); $this->deleteLegajosalud($this->legajosalud); return $this->redirect("legajosalud/verLegajo?aid=" . $alumno_id); }
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) { $keys = LegajosaludPeer::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->setTitulo($arr[$keys[2]]); } if (array_key_exists($keys[3], $arr)) { $this->setDescripcion($arr[$keys[3]]); } if (array_key_exists($keys[4], $arr)) { $this->setFecha($arr[$keys[4]]); } if (array_key_exists($keys[5], $arr)) { $this->setFkUsuarioId($arr[$keys[5]]); } }