[Doctrine] #1703: [PATCH] Serializing a record changes it

3 views
Skip to first unread message

Doctrine

unread,
Nov 30, 2008, 5:35:59 PM11/30/08
to doctri...@googlegroups.com
#1703: [PATCH] Serializing a record changes it
-----------------------------------+----------------------------------------
Reporter: magnus_nordlander | Owner: romanb
Type: defect | Status: new
Priority: minor | Milestone:
Component: Record | Version: 0.11.0
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 1
-----------------------------------+----------------------------------------
When a transient dirty object is serialized, the object is altered. Any
changed columns will be set to null (not Doctrine_Null), which causes
errors when trying to access the values in those columns.

Cloning the object and serializing the clone solves this issue.

Patch is for 0.11 branch, however, this defect seems to exist in 1.0 as
well. A similar patch should work there too.

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

Doctrine

unread,
Dec 1, 2008, 9:44:35 PM12/1/08
to doctri...@googlegroups.com
#1703: [PATCH] Serializing a record changes it
-----------------------------------+----------------------------------------
Reporter: magnus_nordlander | Owner: romanb
Type: defect | Status: new
Priority: minor | Milestone: 1.0.5
Component: Record | Version: 0.11.0
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 1
-----------------------------------+----------------------------------------
Changes (by jwage):

* milestone: => 1.0.5


--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1703#comment:1>

Reply all
Reply to author
Forward
0 new messages