Ejemplo n.º 1
0
 public function mapUserDtoToUser(UserDto $userDto)
 {
     $user = new User();
     $user->setId($userDto->getId());
     $user->setEmail($userDto->getEmail());
     $user->setFirstName($userDto->getFirstName());
     $user->setLastName($userDto->getLastName());
     $user->setUsername($userDto->getUserName());
     $user->setPicture($userDto->getPicture());
     $user->setFile($userDto->getFile());
     $user->setDisplay($userDto->getDisplay());
     $user->setRole($userDto->getRole());
     return $user;
 }