public function getStudentRaportsJoinGradeSpec($criteria = null, $con = null) { include_once 'lib/model/om/BaseStudentRaportPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collStudentRaports === null) { if ($this->isNew()) { $this->collStudentRaports = array(); } else { $criteria->add(StudentRaportPeer::STUDENT_COURSE_ID, $this->getId()); $this->collStudentRaports = StudentRaportPeer::doSelectJoinGradeSpec($criteria, $con); } } else { $criteria->add(StudentRaportPeer::STUDENT_COURSE_ID, $this->getId()); if (!isset($this->lastStudentRaportCriteria) || !$this->lastStudentRaportCriteria->equals($criteria)) { $this->collStudentRaports = StudentRaportPeer::doSelectJoinGradeSpec($criteria, $con); } } $this->lastStudentRaportCriteria = $criteria; return $this->collStudentRaports; }