public function delete($con = null) { // first, delete the related bound object if (!is_object($this->bound) || $this->bound->getBouUid() == "") { $this->bound = BpmnBound::findByElement('Event', $this->getEvnUid()); } if (is_object($this->bound)) { $this->bound->delete($con); } parent::delete($con); }