Ejemplo n.º 1
0
 public function countRegionsRelatedByParent($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseRegionPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(RegionPeer::PARENT, $this->getId());
     return RegionPeer::doCount($criteria, $distinct, $con);
 }