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