public function update(Area $item) { $this->transaction->requestTransaction(); try { $item->update($this->conn); $this->eventDispatcher->dispatch(CantigaEvents::AREA_UPDATED, new AreaEvent($item)); } catch (Exception $exception) { $this->transaction->requestRollback(); throw $exception; } }