mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2143: $em->refresh($entity) doesn't refresh associations cleared with clear() #2698
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 14, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user drake_jc:
@doctrinebot commented on GitHub (Nov 14, 2012):
@doctrinebot commented on GitHub (Jan 23, 2013):
Comment created by @ocramius:
This is because
clearon an un-initialized collection doesn't initialize it. Can you confirm this by adding a call to$this->initialize()in theclearmethod ofDoctrine\ORM\PersistentCollection?@doctrinebot commented on GitHub (Jan 23, 2013):
Comment created by @ocramius:
Related to DDC-1987
@doctrinebot commented on GitHub (Feb 21, 2013):
Comment created by @ocramius:
[~drake_jc] ping?
@doctrinebot commented on GitHub (Mar 31, 2013):
Comment created by @beberlei:
I cannot reproduce this issue, see the testscript attached (put into tests/Doctrine/Tests/ORM/Functional/Ticket/). Can you try to make this code fail?
@doctrinebot commented on GitHub (May 1, 2013):
Comment created by @beberlei:
Closed, no feedback.
@doctrinebot commented on GitHub (May 1, 2013):
Issue was closed with resolution "Cannot Reproduce"
@doctrinebot commented on GitHub (Jan 24, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1218] was labeled:
https://github.com/doctrine/doctrine2/pull/1218