Пример #1
0
 public function countAddresss($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseAddressPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(AddressPeer::USER_ID, $this->getId());
     return AddressPeer::doCount($criteria, $distinct, $con);
 }