Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 8 comments

2 participants

@doctrinebot

Jira issue originally created by user drake_jc:

@doctrinebot

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

Comment created by @ocramius:

Related to DDC-1987

@doctrinebot

Comment created by @ocramius:

[~drake_jc] ping?

@doctrinebot

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

Comment created by @beberlei:

Closed, no feedback.

@doctrinebot

Issue was closed with resolution "Cannot Reproduce"

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1218] was labeled:
#1218

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.