Ticket #1260 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

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

Changed 4 months ago by guilhermeblanco

  • status changed from new to closed
  • resolution set to fixed

In r4706 fixed #1268 and fixed #1260. Fixed test case of #1250. Updated documentation to support changes. Remove BC break of fetchTree and also Pager is now aware of Hydration mode defined in Query object.

Changed 3 months ago by anonymous

  • milestone New deleted

Milestone New deleted

Note: See TracTickets for help on using tickets.