mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-363: "Entity must be managed" exception thrown trying to persist a Proxy entity #452
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 (Feb 22, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user rickdt:
Occurs in trunk revision 7203
We have two entity with an empty oneToMany association
Client -> Email
When there is no email, I don't know why, the collection is filled with EmailProxy. (Data come from a query hydrated object)
in UnitOfWork::_computeAssociationChanges I see there is a test for Proxy entity but it does not apply to collection.
Maybe you could try to check for Proxy in second loop to catch both cases :
@doctrinebot commented on GitHub (Feb 22, 2010):
Comment created by rickdt:
At your request I could do a UnitTest Case
@doctrinebot commented on GitHub (Feb 26, 2010):
Comment created by @beberlei:
The unit-test is somehow missing Eric, can you attach it to the issue again?
@doctrinebot commented on GitHub (Feb 26, 2010):
Comment created by rickdt:
That's because nobody asked for it.
Il try to build one and attach it soon.
@doctrinebot commented on GitHub (Feb 26, 2010):
Comment created by rickdt:
I'm sorry, but I'm not able anymore to reproduce this issue.
Maybe some changes in trunk fixed it.
If it occurs again, I will re-open this case.
@doctrinebot commented on GitHub (Feb 28, 2010):
Comment created by @beberlei:
DDC-353 was a similiar issue, i think this one should be fixed with DDC-353.
@doctrinebot commented on GitHub (Feb 28, 2010):
Issue was closed with resolution "Fixed"