Example #1
0
 public function setProUid($proUid)
 {
     parent::setProUid($proUid);
     $process = BpmnProcessPeer::retrieveByPK($this->getProUid());
     $this->bound->setDiaUid($process->getDiaUid());
 }
 /**
  * Get the associated BpmnProcess object
  *
  * @param      Connection Optional Connection object.
  * @return     BpmnProcess The associated BpmnProcess object.
  * @throws     PropelException
  */
 public function getBpmnProcess($con = null)
 {
     // include the related Peer class
     include_once 'classes/model/om/BaseBpmnProcessPeer.php';
     if ($this->aBpmnProcess === null && ($this->pro_uid !== "" && $this->pro_uid !== null)) {
         $this->aBpmnProcess = BpmnProcessPeer::retrieveByPK($this->pro_uid, $con);
         /* The following can be used instead of the line above to
              guarantee the related object contains a reference
              to this object, but this level of coupling
              may be undesirable in many circumstances.
              As it can lead to a db query with many results that may
              never be used.
              $obj = BpmnProcessPeer::retrieveByPK($this->pro_uid, $con);
              $obj->addBpmnProcesss($this);
            */
     }
     return $this->aBpmnProcess;
 }