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