Beispiel #1
0
 public function getCourseSchedulesJoinAcademicCalendar($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseCourseSchedulePeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collCourseSchedules === null) {
         if ($this->isNew()) {
             $this->collCourseSchedules = array();
         } else {
             $criteria->add(CourseSchedulePeer::EMPLOYEE_ID, $this->getId());
             $this->collCourseSchedules = CourseSchedulePeer::doSelectJoinAcademicCalendar($criteria, $con);
         }
     } else {
         $criteria->add(CourseSchedulePeer::EMPLOYEE_ID, $this->getId());
         if (!isset($this->lastCourseScheduleCriteria) || !$this->lastCourseScheduleCriteria->equals($criteria)) {
             $this->collCourseSchedules = CourseSchedulePeer::doSelectJoinAcademicCalendar($criteria, $con);
         }
     }
     $this->lastCourseScheduleCriteria = $criteria;
     return $this->collCourseSchedules;
 }