public function getVStudentsJoinClassGroup($criteria = null, $con = null) { include_once 'lib/model/om/BaseVStudentPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVStudents === null) { if ($this->isNew()) { $this->collVStudents = array(); } else { $criteria->add(VStudentPeer::ACADEMIC_CALENDAR_ID, $this->getId()); $this->collVStudents = VStudentPeer::doSelectJoinClassGroup($criteria, $con); } } else { $criteria->add(VStudentPeer::ACADEMIC_CALENDAR_ID, $this->getId()); if (!isset($this->lastVStudentCriteria) || !$this->lastVStudentCriteria->equals($criteria)) { $this->collVStudents = VStudentPeer::doSelectJoinClassGroup($criteria, $con); } } $this->lastVStudentCriteria = $criteria; return $this->collVStudents; }