Exemplo n.º 1
0
 public function getVStudentWakafsJoinAcademicCalendar($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseVStudentWakafPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collVStudentWakafs === null) {
         if ($this->isNew()) {
             $this->collVStudentWakafs = array();
         } else {
             $criteria->add(VStudentWakafPeer::ACADEMIC_COST_ID, $this->getId());
             $this->collVStudentWakafs = VStudentWakafPeer::doSelectJoinAcademicCalendar($criteria, $con);
         }
     } else {
         $criteria->add(VStudentWakafPeer::ACADEMIC_COST_ID, $this->getId());
         if (!isset($this->lastVStudentWakafCriteria) || !$this->lastVStudentWakafCriteria->equals($criteria)) {
             $this->collVStudentWakafs = VStudentWakafPeer::doSelectJoinAcademicCalendar($criteria, $con);
         }
     }
     $this->lastVStudentWakafCriteria = $criteria;
     return $this->collVStudentWakafs;
 }