public function getByEmail($email)
    {
        $filter = new IteratorFilter();
        $filter->addRelation($this->getUserDefinition()->getEmail(), Relation::EQUAL, strtolower($email));
        return $this->getUser($filter);
    }
public function getByEmail($email)
    {
        $filter = new IteratorFilter();
        $filter->addRelation($this->getUserDefinition()->getEmail(), Relation::EQUAL, strtolower($email));
        return $this->getUser($filter);
    }
public function getByEmail ( $ email ) { $ filter = new IteratorFilter ( ) ; $ filter -> addRelation ( $ this -> getUserDefinition ( ) -> getEmail ( ) , Relation :: EQUAL , strtolower ( $ email ) ) ; return $ this -> getUser ( $ filter ) ; }
Get the user based on his email.
Return Row if user was found; null, otherwise

@param string $email
@return UserModel
@throws \ByJG\Serializer\Exception\InvalidArgumentException
Get the user based on his email . Return Row if user was found ; null otherwise