public function getSubjectGradingsJoinSubjectCurr($criteria = null, $con = null) { include_once 'lib/model/om/BaseSubjectGradingPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collSubjectGradings === null) { if ($this->isNew()) { $this->collSubjectGradings = array(); } else { $criteria->add(SubjectGradingPeer::CLASS_GROUP_ID, $this->getId()); $this->collSubjectGradings = SubjectGradingPeer::doSelectJoinSubjectCurr($criteria, $con); } } else { $criteria->add(SubjectGradingPeer::CLASS_GROUP_ID, $this->getId()); if (!isset($this->lastSubjectGradingCriteria) || !$this->lastSubjectGradingCriteria->equals($criteria)) { $this->collSubjectGradings = SubjectGradingPeer::doSelectJoinSubjectCurr($criteria, $con); } } $this->lastSubjectGradingCriteria = $criteria; return $this->collSubjectGradings; }