示例#1
0
 public function getVTestLocation1sJoinTestSchedule($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseVTestLocation1Peer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collVTestLocation1s === null) {
         if ($this->isNew()) {
             $this->collVTestLocation1s = array();
         } else {
             $criteria->add(VTestLocation1Peer::LOCATION1, $this->getId());
             $this->collVTestLocation1s = VTestLocation1Peer::doSelectJoinTestSchedule($criteria, $con);
         }
     } else {
         $criteria->add(VTestLocation1Peer::LOCATION1, $this->getId());
         if (!isset($this->lastVTestLocation1Criteria) || !$this->lastVTestLocation1Criteria->equals($criteria)) {
             $this->collVTestLocation1s = VTestLocation1Peer::doSelectJoinTestSchedule($criteria, $con);
         }
     }
     $this->lastVTestLocation1Criteria = $criteria;
     return $this->collVTestLocation1s;
 }
示例#2
0
 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
 {
     $keys = VTestLocation1Peer::getFieldNames($keyType);
     if (array_key_exists($keys[0], $arr)) {
         $this->setTestScheduleId($arr[$keys[0]]);
     }
     if (array_key_exists($keys[1], $arr)) {
         $this->setLocation1($arr[$keys[1]]);
     }
     if (array_key_exists($keys[2], $arr)) {
         $this->setTotal($arr[$keys[2]]);
     }
 }
示例#3
0
 public static function retrieveByPKs($pks, $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(self::DATABASE_NAME);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria();
         $criteria->add(VTestLocation1Peer::TEST_SCHEDULE_ID, $pks, Criteria::IN);
         $objs = VTestLocation1Peer::doSelect($criteria, $con);
     }
     return $objs;
 }