public function getVAbsenceEkskulsJoinScheduleDetail($criteria = null, $con = null) { include_once 'lib/model/om/BaseVAbsenceEkskulPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVAbsenceEkskuls === null) { if ($this->isNew()) { $this->collVAbsenceEkskuls = array(); } else { $criteria->add(VAbsenceEkskulPeer::GRADE_COMPONENT_ID, $this->getId()); $this->collVAbsenceEkskuls = VAbsenceEkskulPeer::doSelectJoinScheduleDetail($criteria, $con); } } else { $criteria->add(VAbsenceEkskulPeer::GRADE_COMPONENT_ID, $this->getId()); if (!isset($this->lastVAbsenceEkskulCriteria) || !$this->lastVAbsenceEkskulCriteria->equals($criteria)) { $this->collVAbsenceEkskuls = VAbsenceEkskulPeer::doSelectJoinScheduleDetail($criteria, $con); } } $this->lastVAbsenceEkskulCriteria = $criteria; return $this->collVAbsenceEkskuls; }