コード例 #1
0
ファイル: BaseEmployee.php プロジェクト: taryono/school
 public function getVCourseSchedulesJoinLocation($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseVCourseSchedulePeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collVCourseSchedules === null) {
         if ($this->isNew()) {
             $this->collVCourseSchedules = array();
         } else {
             $criteria->add(VCourseSchedulePeer::EMPLOYEE_ID, $this->getId());
             $this->collVCourseSchedules = VCourseSchedulePeer::doSelectJoinLocation($criteria, $con);
         }
     } else {
         $criteria->add(VCourseSchedulePeer::EMPLOYEE_ID, $this->getId());
         if (!isset($this->lastVCourseScheduleCriteria) || !$this->lastVCourseScheduleCriteria->equals($criteria)) {
             $this->collVCourseSchedules = VCourseSchedulePeer::doSelectJoinLocation($criteria, $con);
         }
     }
     $this->lastVCourseScheduleCriteria = $criteria;
     return $this->collVCourseSchedules;
 }