Esempio n. 1
0
 public function getAngketpmbSessionAnswersJoinAngketpmbSession($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseAngketpmbSessionAnswerPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collAngketpmbSessionAnswers === null) {
         if ($this->isNew()) {
             $this->collAngketpmbSessionAnswers = array();
         } else {
             $criteria->add(AngketpmbSessionAnswerPeer::SOAL_ID, $this->getId());
             $this->collAngketpmbSessionAnswers = AngketpmbSessionAnswerPeer::doSelectJoinAngketpmbSession($criteria, $con);
         }
     } else {
         $criteria->add(AngketpmbSessionAnswerPeer::SOAL_ID, $this->getId());
         if (!isset($this->lastAngketpmbSessionAnswerCriteria) || !$this->lastAngketpmbSessionAnswerCriteria->equals($criteria)) {
             $this->collAngketpmbSessionAnswers = AngketpmbSessionAnswerPeer::doSelectJoinAngketpmbSession($criteria, $con);
         }
     }
     $this->lastAngketpmbSessionAnswerCriteria = $criteria;
     return $this->collAngketpmbSessionAnswers;
 }