public function fromArray($data, $type = BasePeer::TYPE_FIELDNAME) { parent::fromArray($data, $type); $bound = BpmnBound::findByElement('Event', $this->getEvnUid()); 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); }