Ticket #1260 (closed defect: fixed)
PagerLayout ignores HYDRATE_ARRAY in query
| Reported by: | colnector | Owned by: | guilhermeblanco |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Pager | Version: | 0.11.0 |
| Keywords: | Cc: | ||
| Has Test: | no | Status: | Pending Core Response |
| Has Patch: | no |
Description
When using a PagerLayout?
{{{ $pager_layout = new Doctrine_Pager_Layout(
new Doctrine_Pager(
Doctrine_Query::create()
#...... query details here
->setHydrationMode(Doctrine::HYDRATE_ARRAY),
$currentPage, $resultsPerPage
), new Doctrine_Pager_Range_Sliding(array(
'chunk' => 20
)), 'http://site/show?page={%page_number}'
);}}}
Then the hydration mode used will be an array only if $pager_layout->execute(array(), Doctrine::HYDRATE_ARRAY);
but not if $pager_layout->execute();
although setHydrationMode() was set in the above query.
Change History
Note: See
TracTickets for help on using
tickets.