/**
  * Returns the number of related SchemaPropertysRelatedByIsSubpropertyOf.
  *
  * @param      Criteria $criteria
  * @param      boolean $distinct
  * @param      Connection $con
  * @throws     PropelException
  */
 public function countSchemaPropertysRelatedByIsSubpropertyOf($criteria = null, $distinct = false, $con = null)
 {
     // include the Peer class
     include_once 'lib/model/om/BaseSchemaPropertyPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(SchemaPropertyPeer::IS_SUBPROPERTY_OF, $this->getId());
     return SchemaPropertyPeer::doCount($criteria, $distinct, $con);
 }
示例#2
0
 /**
  * Returns the number of related SchemaPropertysRelatedByUpdatedUserId.
  *
  * @param      Criteria $criteria
  * @param      boolean $distinct
  * @param      Connection $con
  * @throws     PropelException
  */
 public function countSchemaPropertysRelatedByUpdatedUserId($criteria = null, $distinct = false, $con = null)
 {
     // include the Peer class
     include_once 'lib/model/om/BaseSchemaPropertyPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(SchemaPropertyPeer::UPDATED_USER_ID, $this->getId());
     return SchemaPropertyPeer::doCount($criteria, $distinct, $con);
 }