/** * Returns the number of related SchemaPropertyElementsRelatedByRelatedSchemaPropertyId. * * @param Criteria $criteria * @param boolean $distinct * @param Connection $con * @throws PropelException */ public function countSchemaPropertyElementsRelatedByRelatedSchemaPropertyId($criteria = null, $distinct = false, $con = null) { // include the Peer class include_once 'lib/model/om/BaseSchemaPropertyElementPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } $criteria->add(SchemaPropertyElementPeer::RELATED_SCHEMA_PROPERTY_ID, $this->getId()); return SchemaPropertyElementPeer::doCount($criteria, $distinct, $con); }