propelorm/Propel — Issue #257: Paginate data when data was retrieved by the "select" method
Author: maxailloud
Created: 2012-01-13 14:24:44+00:00
State: open

My code:

```php
$datasPager = Model\IdentiteQuery::create()
->select(array('Ipp', 'NomNaissance', 'Prenom', 'DateNaissance', 'CreatedAt', 'UpdatedAt'))
->orderBy('UpdatedAt', \Criteria::DESC)
->paginate($page, 20)
;
```

And what I get:

```
An exception has been thrown during the rendering of a template ("Notice: Undefined offset: 6 in
/home/mailloud/workspace/referentiels/src/Pmsipilot/ReferentielsBundle/Model/om/BaseIdentite.php line 1250") in
ReferentielsBundle:Data:data.html.twig at line 21.
```

Using the method "select" with the "paginate" one cause that exception.
It used to work and I don't know when it started to misfunction.