plugin/exo/Serializer/UserSerializer.php
public function deserialize($data, User $user = null, array $options = [])
    {
        if (empty($user)) {
            /** @var User $user */
            $user = $this->om->getRepository(User::class)->findOneBy(['uuid' => $data['id']]);
        }

        return $user;
    }
public function deserialize($data, User $user = null, array $options = [])
    {
        if (empty($user)) {
            /** @var User $user */
            $user = $this->om->getRepository(User::class)->findOneBy(['uuid' => $data['id']]);
        }

        return $user;
    }
public function deserialize ( $ data , User $ user = null , array $ options = [ ] ) { if ( empty ( $ user ) ) { /** @var User $user */ $ user = $ this -> om -> getRepository ( User :: class ) -> findOneBy ( [ 'uuid' => $ data [ 'id' ] ] ) ; } return $ user ; }
Converts raw data into a User entity.

Note : we don't allow to update users here, so this method only returns the untouched entity instance.

@param \array $data
@param User   $user
@param array  $options

@return User
Converts raw data into a User entity .