示例#1
0
 public function countsfTickets($criteria = null, $distinct = false, $con = null)
 {
     include_once 'plugins/sfSupportPlugin/lib/model/om/BasesfTicketPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(sfTicketPeer::USER_ID, $this->getId());
     return sfTicketPeer::doCount($criteria, $distinct, $con);
 }