예제 #1
0
 public function getSubjectAccalsJoinEmployee($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseSubjectAccalPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collSubjectAccals === null) {
         if ($this->isNew()) {
             $this->collSubjectAccals = array();
         } else {
             $criteria->add(SubjectAccalPeer::SUBJECT_ID, $this->getId());
             $this->collSubjectAccals = SubjectAccalPeer::doSelectJoinEmployee($criteria, $con);
         }
     } else {
         $criteria->add(SubjectAccalPeer::SUBJECT_ID, $this->getId());
         if (!isset($this->lastSubjectAccalCriteria) || !$this->lastSubjectAccalCriteria->equals($criteria)) {
             $this->collSubjectAccals = SubjectAccalPeer::doSelectJoinEmployee($criteria, $con);
         }
     }
     $this->lastSubjectAccalCriteria = $criteria;
     return $this->collSubjectAccals;
 }