public function getVStudentActivesJoinAcademicCalendar($criteria = null, $con = null) { include_once 'lib/model/om/BaseVStudentActivePeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVStudentActives === null) { if ($this->isNew()) { $this->collVStudentActives = array(); } else { $criteria->add(VStudentActivePeer::TEST_APPLICANT_ID, $this->getId()); $this->collVStudentActives = VStudentActivePeer::doSelectJoinAcademicCalendar($criteria, $con); } } else { $criteria->add(VStudentActivePeer::TEST_APPLICANT_ID, $this->getId()); if (!isset($this->lastVStudentActiveCriteria) || !$this->lastVStudentActiveCriteria->equals($criteria)) { $this->collVStudentActives = VStudentActivePeer::doSelectJoinAcademicCalendar($criteria, $con); } } $this->lastVStudentActiveCriteria = $criteria; return $this->collVStudentActives; }