public function findAllWithoutFetchPaged($page = 0, $limit = 20) {
    $offset = $page * $limit;
    $results = $this->createQuery()
      ->setFirstResult($offset)
      ->setMaxResults($limit)
      ->execute();
    return $results;
  }
public function findAllWithoutFetchPaged($page = 0, $limit = 20) {
    $offset = $page * $limit;
    $results = $this->createQuery()
      ->setFirstResult($offset)
      ->setMaxResults($limit)
      ->execute();
    return $results;
  }
public function findAllWithoutFetchPaged ( $ page = 0 , $ limit = 20 ) { $ offset = $ page * $ limit ; $ results = $ this -> createQuery ( ) -> setFirstResult ( $ offset ) -> setMaxResults ( $ limit ) -> execute ( ) ; return $ results ; }
Finds all records of a table.

@param int $page

@param int $limit

@return mixed : PDOStatement with results.
Finds all records of a table .