Exemplo n.º 1
0
 public function getNgTestApplicantsJoinCity($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseNgTestApplicantPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collNgTestApplicants === null) {
         if ($this->isNew()) {
             $this->collNgTestApplicants = array();
         } else {
             $criteria->add(NgTestApplicantPeer::NG_STATUS_APPLICANT_ID, $this->getId());
             $this->collNgTestApplicants = NgTestApplicantPeer::doSelectJoinCity($criteria, $con);
         }
     } else {
         $criteria->add(NgTestApplicantPeer::NG_STATUS_APPLICANT_ID, $this->getId());
         if (!isset($this->lastNgTestApplicantCriteria) || !$this->lastNgTestApplicantCriteria->equals($criteria)) {
             $this->collNgTestApplicants = NgTestApplicantPeer::doSelectJoinCity($criteria, $con);
         }
     }
     $this->lastNgTestApplicantCriteria = $criteria;
     return $this->collNgTestApplicants;
 }