agregar pabellon a tabla de equipos, mejorar respuesta de registro de usuario, normalizar mensajes de error
This commit is contained in:
@@ -42,6 +42,19 @@ class UserDto
|
||||
];
|
||||
}
|
||||
|
||||
public function toRegisterArray(): array
|
||||
{
|
||||
return [
|
||||
'id' => $this->id ?? null,
|
||||
'email' => $this->email ?? null,
|
||||
'firstName' => $this->firstName ?? null,
|
||||
'lastName' => $this->lastName ?? null,
|
||||
'phone' => $this->phone,
|
||||
'profilePicture' => $this->profilePicture ?? null,
|
||||
'birthday' => $this->birthday->format('Y-m-d'),
|
||||
];
|
||||
}
|
||||
|
||||
public function fillFromObject(User $userObj): void
|
||||
{
|
||||
if ($userObj->getId() !== null)
|
||||
|
||||
Reference in New Issue
Block a user