示例#1
0
 public function getScheduleDetailsJoinLocation($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseScheduleDetailPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collScheduleDetails === null) {
         if ($this->isNew()) {
             $this->collScheduleDetails = array();
         } else {
             $criteria->add(ScheduleDetailPeer::SCHEDULE_ID, $this->getId());
             $this->collScheduleDetails = ScheduleDetailPeer::doSelectJoinLocation($criteria, $con);
         }
     } else {
         $criteria->add(ScheduleDetailPeer::SCHEDULE_ID, $this->getId());
         if (!isset($this->lastScheduleDetailCriteria) || !$this->lastScheduleDetailCriteria->equals($criteria)) {
             $this->collScheduleDetails = ScheduleDetailPeer::doSelectJoinLocation($criteria, $con);
         }
     }
     $this->lastScheduleDetailCriteria = $criteria;
     return $this->collScheduleDetails;
 }