DDC-2143: $em->refresh($entity) doesn't refresh associations cleared with clear() #2698

Closed
opened 2026-01-22 14:00:54 +01:00 by admin · 8 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 14, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user drake_jc:

Originally created by @doctrinebot on GitHub (Nov 14, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user drake_jc:
admin added the Bug label 2026-01-22 14:00:54 +01:00
admin closed this issue 2026-01-22 14:00:55 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 14, 2012):

@doctrinebot commented on GitHub (Nov 14, 2012): - is duplicated by [DDC-1987: Cascading "refresh" does not work on lazy loaded associations](http://www.doctrine-project.org/jira/browse/DDC-1987)
Author
Owner

@doctrinebot commented on GitHub (Jan 23, 2013):

Comment created by @ocramius:

This is because clear on an un-initialized collection doesn't initialize it. Can you confirm this by adding a call to $this->initialize() in the clear method of Doctrine\ORM\PersistentCollection?

@doctrinebot commented on GitHub (Jan 23, 2013): Comment created by @ocramius: This is because `clear` on an un-initialized collection doesn't initialize it. Can you confirm this by adding a call to `$this->initialize()` in the `clear` method of `Doctrine\ORM\PersistentCollection`?
Author
Owner

@doctrinebot commented on GitHub (Jan 23, 2013):

Comment created by @ocramius:

Related to DDC-1987

@doctrinebot commented on GitHub (Jan 23, 2013): Comment created by @ocramius: Related to [DDC-1987](http://www.doctrine-project.org/jira/browse/DDC-1987)
Author
Owner

@doctrinebot commented on GitHub (Feb 21, 2013):

Comment created by @ocramius:

[~drake_jc] ping?

@doctrinebot commented on GitHub (Feb 21, 2013): Comment created by @ocramius: [~drake_jc] ping?
Author
Owner

@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 (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?
Author
Owner

@doctrinebot commented on GitHub (May 1, 2013):

Comment created by @beberlei:

Closed, no feedback.

@doctrinebot commented on GitHub (May 1, 2013): Comment created by @beberlei: Closed, no feedback.
Author
Owner

@doctrinebot commented on GitHub (May 1, 2013):

Issue was closed with resolution "Cannot Reproduce"

@doctrinebot commented on GitHub (May 1, 2013): Issue was closed with resolution "Cannot Reproduce"
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2698