public function getTestApplicantsJoinLocationRelatedByLocation1($criteria = null, $con = null) { include_once 'lib/model/om/BaseTestApplicantPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collTestApplicants === null) { if ($this->isNew()) { $this->collTestApplicants = array(); } else { $criteria->add(TestApplicantPeer::TEST_APPLICANT_DETAIL_ID, $this->getId()); $this->collTestApplicants = TestApplicantPeer::doSelectJoinLocationRelatedByLocation1($criteria, $con); } } else { $criteria->add(TestApplicantPeer::TEST_APPLICANT_DETAIL_ID, $this->getId()); if (!isset($this->lastTestApplicantCriteria) || !$this->lastTestApplicantCriteria->equals($criteria)) { $this->collTestApplicants = TestApplicantPeer::doSelectJoinLocationRelatedByLocation1($criteria, $con); } } $this->lastTestApplicantCriteria = $criteria; return $this->collTestApplicants; }
public function getTestApplicantsRelatedByClassGroup2JoinLocationRelatedByLocation1($criteria = null, $con = null) { include_once 'lib/model/om/BaseTestApplicantPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collTestApplicantsRelatedByClassGroup2 === null) { if ($this->isNew()) { $this->collTestApplicantsRelatedByClassGroup2 = array(); } else { $criteria->add(TestApplicantPeer::CLASS_GROUP2, $this->getId()); $this->collTestApplicantsRelatedByClassGroup2 = TestApplicantPeer::doSelectJoinLocationRelatedByLocation1($criteria, $con); } } else { $criteria->add(TestApplicantPeer::CLASS_GROUP2, $this->getId()); if (!isset($this->lastTestApplicantRelatedByClassGroup2Criteria) || !$this->lastTestApplicantRelatedByClassGroup2Criteria->equals($criteria)) { $this->collTestApplicantsRelatedByClassGroup2 = TestApplicantPeer::doSelectJoinLocationRelatedByLocation1($criteria, $con); } } $this->lastTestApplicantRelatedByClassGroup2Criteria = $criteria; return $this->collTestApplicantsRelatedByClassGroup2; }