#1605: scalar hydration - possibility to edit row in hydration process
-------------------------------------------------------+--------------------
Reporter: dbojdo | Owner: romanb
Type: enhancement | Status: new
Priority: minor | Milestone: 1.1.0
Component: Query/Hydration | Version: 1.1-DEV
Keywords: scalar hydration, preHydrate, postHydrate | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-------------------------------------------------------+--------------------
Scalar hydration mode is very, very useful, but we can't with it pre and
postHydrate functions. It'll be nice to have possibility to edit
(add/remove columns)row in hydration process. Pre and postHydrate
functions are very useful, but their're defined for all record once. I
thought aboute sth like $query->addCallback('Class::method') and to the
'method' will be given current $rowData and of course that 'method' will
return modified $rowData. It will be very flexible solution. I'll send my
patch soon.
--
Ticket URL: <
http://trac.doctrine-project.org/ticket/1605>
Doctrine <
http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper