public function getStudentAccalsJoinClassGroup($criteria = null, $con = null) { include_once 'lib/model/om/BaseStudentAccalPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collStudentAccals === null) { if ($this->isNew()) { $this->collStudentAccals = array(); } else { $criteria->add(StudentAccalPeer::STUDENT_ID, $this->getId()); $this->collStudentAccals = StudentAccalPeer::doSelectJoinClassGroup($criteria, $con); } } else { $criteria->add(StudentAccalPeer::STUDENT_ID, $this->getId()); if (!isset($this->lastStudentAccalCriteria) || !$this->lastStudentAccalCriteria->equals($criteria)) { $this->collStudentAccals = StudentAccalPeer::doSelectJoinClassGroup($criteria, $con); } } $this->lastStudentAccalCriteria = $criteria; return $this->collStudentAccals; }