Beispiel #1
0
 public function countQuestions($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseQuestionPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(QuestionPeer::USER_ID, $this->getId());
     return QuestionPeer::doCount($criteria, $distinct, $con);
 }