Ejemplo n.º 1
0
 public function getSubjectGradingsJoinSubjectAccal($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseSubjectGradingPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collSubjectGradings === null) {
         if ($this->isNew()) {
             $this->collSubjectGradings = array();
         } else {
             $criteria->add(SubjectGradingPeer::SUBJECT_CURR_ID, $this->getId());
             $this->collSubjectGradings = SubjectGradingPeer::doSelectJoinSubjectAccal($criteria, $con);
         }
     } else {
         $criteria->add(SubjectGradingPeer::SUBJECT_CURR_ID, $this->getId());
         if (!isset($this->lastSubjectGradingCriteria) || !$this->lastSubjectGradingCriteria->equals($criteria)) {
             $this->collSubjectGradings = SubjectGradingPeer::doSelectJoinSubjectAccal($criteria, $con);
         }
     }
     $this->lastSubjectGradingCriteria = $criteria;
     return $this->collSubjectGradings;
 }