public function getVTestApplSchedsJoinLocationRelatedByLocation1($criteria = null, $con = null) { include_once 'lib/model/om/BaseVTestApplSchedPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVTestApplScheds === null) { if ($this->isNew()) { $this->collVTestApplScheds = array(); } else { $criteria->add(VTestApplSchedPeer::TEST_APPLICANT_ID, $this->getId()); $this->collVTestApplScheds = VTestApplSchedPeer::doSelectJoinLocationRelatedByLocation1($criteria, $con); } } else { $criteria->add(VTestApplSchedPeer::TEST_APPLICANT_ID, $this->getId()); if (!isset($this->lastVTestApplSchedCriteria) || !$this->lastVTestApplSchedCriteria->equals($criteria)) { $this->collVTestApplScheds = VTestApplSchedPeer::doSelectJoinLocationRelatedByLocation1($criteria, $con); } } $this->lastVTestApplSchedCriteria = $criteria; return $this->collVTestApplScheds; }