mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3981: [GH-1546] Fix proxy erased by hydratation #4858
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 6, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of jderusse:
Url: https://github.com/doctrine/doctrine2/pull/1546
Message:
This PR fixe a edge case when hydrating an existing object which already has a proxy to diff��rente entity.
Imagine the entity
When a instance of
Userhas an address created with aProxy, then, the hydratation of an other instance of the sameUserwill replace the content of the fieldaddressin this instance.Such situation append with a PUT call with the DunglasApiBundle and the validator UniqueEntity from Symfony which trigger a
$repository->findon the object.identityMapof theuowHow to reproduce:
@doctrinebot commented on GitHub (Nov 6, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1546] was labeled:
https://github.com/doctrine/doctrine2/pull/1546
@doctrinebot commented on GitHub (Nov 7, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1546] was labeled:
https://github.com/doctrine/doctrine2/pull/1546
@doctrinebot commented on GitHub (Nov 7, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1546] was unlabeled:
https://github.com/doctrine/doctrine2/pull/1546
@doctrinebot commented on GitHub (Nov 7, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1546] was assigned:
https://github.com/doctrine/doctrine2/pull/1546
@doctrinebot commented on GitHub (Nov 7, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1546] was labeled:
https://github.com/doctrine/doctrine2/pull/1546