code: public function update(IEventContainer $eventContainer, array $values)
      {
          try {
              $idUser = $this->identityModel->insert($values);
              $eventContainer->addValues(['id_user' => $idUser]);
          } catch (Exception $e) {
              // recall exception
              throw new EventException($e->getMessage());
          }
      }
docs: Update.
  
  @param IEventContainer $eventContainer
  @param array           $values
  @throws EventException