public function countCirHistorys($criteria = null, $distinct = false, $con = null) { include_once 'lib/model/om/BaseCirHistoryPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } $criteria->add(CirHistoryPeer::COL_STATUS_ID, $this->getId()); return CirHistoryPeer::doCount($criteria, $distinct, $con); }