src/Repository.php
public function find(array $filter = [], array $orderBy = [], $limit = 0,
        $offset = 0, array $associate = []
    ) {
        try {

            $query = $this->query()
                ->select()
                ->associate($associate)
                ->setFilter($filter);

            foreach ($orderBy as $orderByRule) {
                $query->orderBy($orderByRule[0], $orderByRule[1]);
            }

            return $query->limit($limit)->offset($offset)->run($this->connection);
        } catch (Exception\QueryException $e) {
            throw new Exception\RepositoryException($e->getMessage());
        }
    }
public function find(array $filter = [], array $orderBy = [], $limit = 0,
        $offset = 0, array $associate = []
    ) {
        try {

            $query = $this->query()
                ->select()
                ->associate($associate)
                ->setFilter($filter);

            foreach ($orderBy as $orderByRule) {
                $query->orderBy($orderByRule[0], $orderByRule[1]);
            }

            return $query->limit($limit)->offset($offset)->run($this->connection);
        } catch (Exception\QueryException $e) {
            throw new Exception\RepositoryException($e->getMessage());
        }
    }
public function find ( array $ filter = [ ] , array $ orderBy = [ ] , $ limit = 0 , $ offset = 0 , array $ associate = [ ] ) { try { $ query = $ this -> query ( ) -> select ( ) -> associate ( $ associate ) -> setFilter ( $ filter ) ; foreach ( $ orderBy as $ orderByRule ) { $ query -> orderBy ( $ orderByRule [ 0 ] , $ orderByRule [ 1 ] ) ; } return $ query -> limit ( $ limit ) -> offset ( $ offset ) -> run ( $ this -> connection ) ; } catch ( Exception \ QueryException $ e ) { throw new Exception \ RepositoryException ( $ e -> getMessage ( ) ) ; } }
Find all records

@param array $filter
@param array $orderBy
@param int   $limit
@param int   $offset
@param array $associate

@return Entity\Collection

@throws Exception\RepositoryException
Find all records