Beispiel #1
0
 public function countCollections($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseCollectionPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(CollectionPeer::CATALOG_ID, $this->getId());
     return CollectionPeer::doCount($criteria, $distinct, $con);
 }
 /**
  * Returns the number of related CollectionsRelatedByUpdatedUserId.
  *
  * @param      Criteria $criteria
  * @param      boolean $distinct
  * @param      Connection $con
  * @throws     PropelException
  */
 public function countCollectionsRelatedByUpdatedUserId($criteria = null, $distinct = false, $con = null)
 {
     // include the Peer class
     include_once 'lib/model/om/BaseCollectionPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(CollectionPeer::UPDATED_USER_ID, $this->getId());
     return CollectionPeer::doCount($criteria, $distinct, $con);
 }