Пример #1
0
 public function executeList()
 {
     $this->ab_addressess = AbAddressesPeer::doSelect(new Criteria());
 }
Пример #2
0
 public function getAbAddressess($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseAbAddressesPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collAbAddressess === null) {
         if ($this->isNew()) {
             $this->collAbAddressess = array();
         } else {
             $criteria->add(AbAddressesPeer::AB_CATEGORY_ID, $this->getId());
             AbAddressesPeer::addSelectColumns($criteria);
             $this->collAbAddressess = AbAddressesPeer::doSelect($criteria, $con);
         }
     } else {
         if (!$this->isNew()) {
             $criteria->add(AbAddressesPeer::AB_CATEGORY_ID, $this->getId());
             AbAddressesPeer::addSelectColumns($criteria);
             if (!isset($this->lastAbAddressesCriteria) || !$this->lastAbAddressesCriteria->equals($criteria)) {
                 $this->collAbAddressess = AbAddressesPeer::doSelect($criteria, $con);
             }
         }
     }
     $this->lastAbAddressesCriteria = $criteria;
     return $this->collAbAddressess;
 }
Пример #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(AbAddressesPeer::ID, $pks, Criteria::IN);
         $objs = AbAddressesPeer::doSelect($criteria, $con);
     }
     return $objs;
 }