Esempio n. 1
0
 public function getNgRegPeriodRulesJoinJobType($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseNgRegPeriodRulePeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collNgRegPeriodRules === null) {
         if ($this->isNew()) {
             $this->collNgRegPeriodRules = array();
         } else {
             $criteria->add(NgRegPeriodRulePeer::NG_REG_PERIOD_ID, $this->getId());
             $this->collNgRegPeriodRules = NgRegPeriodRulePeer::doSelectJoinJobType($criteria, $con);
         }
     } else {
         $criteria->add(NgRegPeriodRulePeer::NG_REG_PERIOD_ID, $this->getId());
         if (!isset($this->lastNgRegPeriodRuleCriteria) || !$this->lastNgRegPeriodRuleCriteria->equals($criteria)) {
             $this->collNgRegPeriodRules = NgRegPeriodRulePeer::doSelectJoinJobType($criteria, $con);
         }
     }
     $this->lastNgRegPeriodRuleCriteria = $criteria;
     return $this->collNgRegPeriodRules;
 }