Exemplo n.º 1
0
 /**
  * Returns the number of related BpmnGateways.
  *
  * @param      Criteria $criteria
  * @param      boolean $distinct
  * @param      Connection $con
  * @throws     PropelException
  */
 public function countBpmnGateways($criteria = null, $distinct = false, $con = null)
 {
     // include the Peer class
     include_once 'classes/model/om/BaseBpmnGatewayPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(BpmnGatewayPeer::PRJ_UID, $this->getPrjUid());
     return BpmnGatewayPeer::doCount($criteria, $distinct, $con);
 }
Exemplo n.º 2
0
 public static function exists($gatUid)
 {
     $c = new Criteria("workflow");
     $c->add(BpmnGatewayPeer::GAT_UID, $gatUid);
     return BpmnGatewayPeer::doCount($c) > 0 ? true : false;
 }