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

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