Beispiel #1
0
 public function getCourseScheduleDetailsJoinLocation($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseCourseScheduleDetailPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collCourseScheduleDetails === null) {
         if ($this->isNew()) {
             $this->collCourseScheduleDetails = array();
         } else {
             $criteria->add(CourseScheduleDetailPeer::CLASS_SESSION_ID, $this->getId());
             $this->collCourseScheduleDetails = CourseScheduleDetailPeer::doSelectJoinLocation($criteria, $con);
         }
     } else {
         $criteria->add(CourseScheduleDetailPeer::CLASS_SESSION_ID, $this->getId());
         if (!isset($this->lastCourseScheduleDetailCriteria) || !$this->lastCourseScheduleDetailCriteria->equals($criteria)) {
             $this->collCourseScheduleDetails = CourseScheduleDetailPeer::doSelectJoinLocation($criteria, $con);
         }
     }
     $this->lastCourseScheduleDetailCriteria = $criteria;
     return $this->collCourseScheduleDetails;
 }