コード例 #1
0
ファイル: BaseEtime.php プロジェクト: soon0009/EMS
 public function getEtimeAudiencesJoinAudience($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseEtimeAudiencePeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collEtimeAudiences === null) {
         if ($this->isNew()) {
             $this->collEtimeAudiences = array();
         } else {
             $criteria->add(EtimeAudiencePeer::ETIME_ID, $this->getId());
             $this->collEtimeAudiences = EtimeAudiencePeer::doSelectJoinAudience($criteria, $con);
         }
     } else {
         $criteria->add(EtimeAudiencePeer::ETIME_ID, $this->getId());
         if (!isset($this->lastEtimeAudienceCriteria) || !$this->lastEtimeAudienceCriteria->equals($criteria)) {
             $this->collEtimeAudiences = EtimeAudiencePeer::doSelectJoinAudience($criteria, $con);
         }
     }
     $this->lastEtimeAudienceCriteria = $criteria;
     return $this->collEtimeAudiences;
 }