public function getVStudentRaportsJoinGradeComponent($criteria = null, $con = null) { include_once 'lib/model/om/BaseVStudentRaportPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVStudentRaports === null) { if ($this->isNew()) { $this->collVStudentRaports = array(); } else { $criteria->add(VStudentRaportPeer::STUDENT_ACCAL_ID, $this->getId()); $this->collVStudentRaports = VStudentRaportPeer::doSelectJoinGradeComponent($criteria, $con); } } else { $criteria->add(VStudentRaportPeer::STUDENT_ACCAL_ID, $this->getId()); if (!isset($this->lastVStudentRaportCriteria) || !$this->lastVStudentRaportCriteria->equals($criteria)) { $this->collVStudentRaports = VStudentRaportPeer::doSelectJoinGradeComponent($criteria, $con); } } $this->lastVStudentRaportCriteria = $criteria; return $this->collVStudentRaports; }