예제 #1
0
 public function getClassAgendasJoinEmployee($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseClassAgendaPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collClassAgendas === null) {
         if ($this->isNew()) {
             $this->collClassAgendas = array();
         } else {
             $criteria->add(ClassAgendaPeer::SCHEDULE_ID, $this->getId());
             $this->collClassAgendas = ClassAgendaPeer::doSelectJoinEmployee($criteria, $con);
         }
     } else {
         $criteria->add(ClassAgendaPeer::SCHEDULE_ID, $this->getId());
         if (!isset($this->lastClassAgendaCriteria) || !$this->lastClassAgendaCriteria->equals($criteria)) {
             $this->collClassAgendas = ClassAgendaPeer::doSelectJoinEmployee($criteria, $con);
         }
     }
     $this->lastClassAgendaCriteria = $criteria;
     return $this->collClassAgendas;
 }