コード例 #1
0
ファイル: BaseTestSchedule.php プロジェクト: taryono/school
 public function getVTestApplSched1sJoinLocation($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseVTestApplSched1Peer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collVTestApplSched1s === null) {
         if ($this->isNew()) {
             $this->collVTestApplSched1s = array();
         } else {
             $criteria->add(VTestApplSched1Peer::TEST_SCHEDULE_ID, $this->getId());
             $this->collVTestApplSched1s = VTestApplSched1Peer::doSelectJoinLocation($criteria, $con);
         }
     } else {
         $criteria->add(VTestApplSched1Peer::TEST_SCHEDULE_ID, $this->getId());
         if (!isset($this->lastVTestApplSched1Criteria) || !$this->lastVTestApplSched1Criteria->equals($criteria)) {
             $this->collVTestApplSched1s = VTestApplSched1Peer::doSelectJoinLocation($criteria, $con);
         }
     }
     $this->lastVTestApplSched1Criteria = $criteria;
     return $this->collVTestApplSched1s;
 }