Exemple #1
0
 public function getCourseRegulationsJoinClassGroup($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseCourseRegulationPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collCourseRegulations === null) {
         if ($this->isNew()) {
             $this->collCourseRegulations = array();
         } else {
             $criteria->add(CourseRegulationPeer::SUBJECT_CURR_ID, $this->getId());
             $this->collCourseRegulations = CourseRegulationPeer::doSelectJoinClassGroup($criteria, $con);
         }
     } else {
         $criteria->add(CourseRegulationPeer::SUBJECT_CURR_ID, $this->getId());
         if (!isset($this->lastCourseRegulationCriteria) || !$this->lastCourseRegulationCriteria->equals($criteria)) {
             $this->collCourseRegulations = CourseRegulationPeer::doSelectJoinClassGroup($criteria, $con);
         }
     }
     $this->lastCourseRegulationCriteria = $criteria;
     return $this->collCourseRegulations;
 }