Exemple #1
0
 public function fromArray($data, $type = BasePeer::TYPE_FIELDNAME)
 {
     parent::fromArray($data, $type);
     $bound = BpmnBound::findByElement('Lane', $this->getLanUid());
     if (is_object($bound)) {
         $this->bound = $bound;
     } else {
         $this->bound = new BpmnBound();
         $this->bound->setBouUid(ProcessMaker\Util\Common::generateUID());
     }
     $this->bound->fromArray($data, BasePeer::TYPE_FIELDNAME);
 }
 public function fromArray($data, $type = BasePeer::TYPE_FIELDNAME)
 {
     parent::fromArray($data, $type);
     $bound = BpmnBound::findByElement('Artifact', $this->getArtUid());
     if (is_object($bound)) {
         $this->bound = $bound;
     } else {
         $this->bound = new BpmnBound();
         $this->bound->setBouUid(ProcessMaker\Util\Common::generateUID());
     }
     if ($data['ART_TYPE'] == 'VERTICAL_LINE' || $data['ART_TYPE'] == 'HORIZONTAL_LINE') {
         unset($data['BOU_WIDTH']);
         unset($data['BOU_HEIGHT']);
     }
     $this->bound->fromArray($data, BasePeer::TYPE_FIELDNAME);
 }