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