src/Datagrid/Pager.php
protected function retrieveObject($offset)
    {
        $queryForRetrieve = clone $this->getQuery();
        $queryForRetrieve
            ->setFirstResult($offset - 1)
            ->setMaxResults(1);

        $results = $queryForRetrieve->execute();

        return $results[0];
    }
protected function retrieveObject($offset)
    {
        $queryForRetrieve = clone $this->getQuery();
        $queryForRetrieve
            ->setFirstResult($offset - 1)
            ->setMaxResults(1);

        $results = $queryForRetrieve->execute();

        return $results[0];
    }
protected function retrieveObject ( $ offset ) { $ queryForRetrieve = clone $ this -> getQuery ( ) ; $ queryForRetrieve -> setFirstResult ( $ offset - 1 ) -> setMaxResults ( 1 ) ; $ results = $ queryForRetrieve -> execute ( ) ; return $ results [ 0 ] ; }
Retrieve the object for a certain offset.

@param int $offset

@return object
Retrieve the object for a certain offset .