[Doctrine] #1036: Wrong generated fixtures when using user defined data

0 views
Skip to first unread message

Doctrine

unread,
May 13, 2008, 5:08:13 AM5/13/08
to doctri...@googlegroups.com
#1036: Wrong generated fixtures when using user defined data
---------------------------+------------------------------------------------
Reporter: nORKy | Owner: jwage
Type: defect | Status: new
Priority: minor | Milestone: 0.11.0
Component: Data Fixtures | Version: 0.11
Keywords: |
---------------------------+------------------------------------------------
{{{
class HydrationListener extends Doctrine_Record_Listener
{
public function preHydrate(Doctrine_Event $event)
{
$data['fullname'] = $data['fname'] . ' ' . $data['name'];
$event->data = $data;
}
}
}}}

When you dump your data, you get :

{{{
User:
User_1:
name: Doe
fname: John
fullname: John Doe
}}}

But, If you reload the fixture, you get the error that it doesn't know the
component 'fullname'.
The dump must not generate the 'fullname' in the fixture

--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1036>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper

Doctrine

unread,
May 16, 2008, 9:17:13 PM5/16/08
to doctri...@googlegroups.com
#1036: Wrong generated fixtures when using user defined data
----------------------------+-----------------------------------------------
Reporter: nORKy | Owner: jwage
Type: defect | Status: closed
Priority: minor | Milestone: 0.11.0
Component: Data Fixtures | Version: 0.11
Resolution: fixed | Keywords:
----------------------------+-----------------------------------------------
Changes (by jwage):

* status: new => closed
* resolution: => fixed

Comment:

(In [4370]) fixes #1036

--
Ticket URL: <http://doctrine.pengus.net/cgi-bin/trac.cgi/ticket/1036#comment:1>
Reply all
Reply to author
Forward
0 new messages