public function getAlumnosJoinEstadosalumnos($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) { if ($criteria === null) { $criteria = new Criteria(CuentaPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collAlumnos === null) { if ($this->isNew()) { $this->collAlumnos = array(); } else { $criteria->add(AlumnoPeer::FK_CUENTA_ID, $this->id); $this->collAlumnos = AlumnoPeer::doSelectJoinEstadosalumnos($criteria, $con, $join_behavior); } } else { $criteria->add(AlumnoPeer::FK_CUENTA_ID, $this->id); if (!isset($this->lastAlumnoCriteria) || !$this->lastAlumnoCriteria->equals($criteria)) { $this->collAlumnos = AlumnoPeer::doSelectJoinEstadosalumnos($criteria, $con, $join_behavior); } } $this->lastAlumnoCriteria = $criteria; return $this->collAlumnos; }