protected function getUpdateEvent($formData) { $event = new AdministratorEvent(); $event->setId($formData['id']); $event->setLogin($formData['login']); $event->setFirstname($formData['firstname']); $event->setLastname($formData['lastname']); $event->setPassword($formData['password']); $event->setProfile($formData['profile'] ?: null); $event->setLocale($formData['locale']); return $event; }