public function getVTestLocation2sJoinTestSchedule($criteria = null, $con = null) { include_once 'lib/model/om/BaseVTestLocation2Peer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVTestLocation2s === null) { if ($this->isNew()) { $this->collVTestLocation2s = array(); } else { $criteria->add(VTestLocation2Peer::LOCATION1, $this->getId()); $this->collVTestLocation2s = VTestLocation2Peer::doSelectJoinTestSchedule($criteria, $con); } } else { $criteria->add(VTestLocation2Peer::LOCATION1, $this->getId()); if (!isset($this->lastVTestLocation2Criteria) || !$this->lastVTestLocation2Criteria->equals($criteria)) { $this->collVTestLocation2s = VTestLocation2Peer::doSelectJoinTestSchedule($criteria, $con); } } $this->lastVTestLocation2Criteria = $criteria; return $this->collVTestLocation2s; }
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(VTestLocation2Peer::TEST_SCHEDULE_ID, $pks, Criteria::IN); $objs = VTestLocation2Peer::doSelect($criteria, $con); } return $objs; }
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) { $keys = VTestLocation2Peer::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]]); } }