Exemplo n.º 1
0
 public function getAlumnosJoinConceptobaja($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
 {
     if ($criteria === null) {
         $criteria = new Criteria(EstadosalumnosPeer::DATABASE_NAME);
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collAlumnos === null) {
         if ($this->isNew()) {
             $this->collAlumnos = array();
         } else {
             $criteria->add(AlumnoPeer::FK_ESTADOALUMNO_ID, $this->id);
             $this->collAlumnos = AlumnoPeer::doSelectJoinConceptobaja($criteria, $con, $join_behavior);
         }
     } else {
         $criteria->add(AlumnoPeer::FK_ESTADOALUMNO_ID, $this->id);
         if (!isset($this->lastAlumnoCriteria) || !$this->lastAlumnoCriteria->equals($criteria)) {
             $this->collAlumnos = AlumnoPeer::doSelectJoinConceptobaja($criteria, $con, $join_behavior);
         }
     }
     $this->lastAlumnoCriteria = $criteria;
     return $this->collAlumnos;
 }