Пример #1
0
 /**
  * Returns the number of related BpmnLanesets.
  *
  * @param      Criteria $criteria
  * @param      boolean $distinct
  * @param      Connection $con
  * @throws     PropelException
  */
 public function countBpmnLanesets($criteria = null, $distinct = false, $con = null)
 {
     // include the Peer class
     include_once 'classes/model/om/BaseBpmnLanesetPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(BpmnLanesetPeer::PRJ_UID, $this->getPrjUid());
     return BpmnLanesetPeer::doCount($criteria, $distinct, $con);
 }
Пример #2
0
 public static function exists($actUid)
 {
     $c = new Criteria("workflow");
     $c->add(BpmnLanesetPeer::LNS_UID, $actUid);
     return BpmnLanesetPeer::doCount($c) > 0 ? true : false;
 }