[Doctrine] #1605: scalar hydration - possibility to edit row in hydration process

1 view
Skip to first unread message

Doctrine

unread,
Oct 23, 2008, 9:50:10 AM10/23/08
to doctri...@googlegroups.com
#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

Doctrine

unread,
Oct 23, 2008, 10:10:17 AM10/23/08
to doctri...@googlegroups.com
#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
Resolution: | Keywords: scalar hydration, preHydrate, postHydrate
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
------------------------------+---------------------------------------------
Old description:

> 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.

New description:

Scalar hydration mode is very, very useful, but we can't use 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#comment:1>

Doctrine

unread,
Oct 23, 2008, 10:14:19 AM10/23/08
to doctri...@googlegroups.com
#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
Resolution: | Keywords: scalar hydration, preHydrate, postHydrate
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 1 |
------------------------------+---------------------------------------------
Changes (by dbojdo):

* has_patch: 0 => 1

--
Ticket URL: <http://trac.doctrine-project.org/ticket/1605#comment:2>

Doctrine

unread,
Dec 1, 2008, 3:22:11 PM12/1/08
to doctri...@googlegroups.com
#1605: scalar hydration - possibility to edit row in hydration process
-------------------------------------------------------+--------------------
Reporter: dbojdo | Owner: romanb
Type: enhancement | Status: new
Priority: minor | Milestone: 1.2.0
Component: Query/Hydration | Version: 1.1-DEV
Keywords: scalar hydration, preHydrate, postHydrate | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 1
-------------------------------------------------------+--------------------
Changes (by jwage):

* milestone: 1.1.0 => 1.2.0


Comment:

Please provide your changes as patches.

--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1605#comment:3>

Reply all
Reply to author
Forward
0 new messages