public function getTestApplSchedsJoinTestApplicant($criteria = null, $con = null) { include_once 'lib/model/om/BaseTestApplSchedPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collTestApplScheds === null) { if ($this->isNew()) { $this->collTestApplScheds = array(); } else { $criteria->add(TestApplSchedPeer::TEST_SCHEDULE_ID, $this->getId()); $this->collTestApplScheds = TestApplSchedPeer::doSelectJoinTestApplicant($criteria, $con); } } else { $criteria->add(TestApplSchedPeer::TEST_SCHEDULE_ID, $this->getId()); if (!isset($this->lastTestApplSchedCriteria) || !$this->lastTestApplSchedCriteria->equals($criteria)) { $this->collTestApplScheds = TestApplSchedPeer::doSelectJoinTestApplicant($criteria, $con); } } $this->lastTestApplSchedCriteria = $criteria; return $this->collTestApplScheds; }