public function getIterator(IteratorFilter $filter = null)
    {
        if (is_null($filter)) {
            $filter = new IteratorFilter();
        }

        $param = [];
        $formatter = new IteratorFilterSqlFormatter();
        $sql = $formatter->getFilter($filter->getRawFilters(), $param);

        $query = Query::getInstance()
            ->table($this->getUserDefinition()->table())
            ->where($sql, $param);

        return $this->userRepository->getByQuery($query);
    }
public function getIterator(IteratorFilter $filter = null)
    {
        if (is_null($filter)) {
            $filter = new IteratorFilter();
        }

        $param = [];
        $formatter = new IteratorFilterSqlFormatter();
        $sql = $formatter->getFilter($filter->getRawFilters(), $param);

        $query = Query::getInstance()
            ->table($this->getUserDefinition()->table())
            ->where($sql, $param);

        return $this->userRepository->getByQuery($query);
    }
public function getIterator ( IteratorFilter $ filter = null ) { if ( is_null ( $ filter ) ) { $ filter = new IteratorFilter ( ) ; } $ param = [ ] ; $ formatter = new IteratorFilterSqlFormatter ( ) ; $ sql = $ formatter -> getFilter ( $ filter -> getRawFilters ( ) , $ param ) ; $ query = Query :: getInstance ( ) -> table ( $ this -> getUserDefinition ( ) -> table ( ) ) -> where ( $ sql , $ param ) ; return $ this -> userRepository -> getByQuery ( $ query ) ; }
Get the users database information based on a filter.

@param IteratorFilter $filter Filter to find user
@return UserModel[]
@throws \ByJG\MicroOrm\Exception\InvalidArgumentException
@throws \ByJG\Serializer\Exception\InvalidArgumentException
Get the users database information based on a filter .