Hi Jan, I was just notified it is fixed, see last comment https://github.com/doctrine/doctrine2/pull/995
Have not checked it out yet. Can you post your findings here? Cheers On 16 April 2014 09:11, Jan L <[email protected]> wrote: > Hi Menno, > > thanks for letting me know that I'm not alone with this problem ;-) > > Best, > > Jan > > Am Dienstag, 15. April 2014 23:35:27 UTC+2 schrieb Holtkamp: >> >> Hi Jan, >> >> guess we are in the same 'boat' ;) >> >> http://www.doctrine-project.org/jira/browse/DDC-2850 >> https://github.com/doctrine/doctrine2/pull/995 >> >> It is possible to respect the cascade 'association' during clearing, but >> my PR's broke some tests. In case you got time to dive into it... >> >> Cheers! >> >> >> On 15 April 2014 14:50, Jan L <[email protected]> wrote: >> >>> I have the following problem with clearing entities in doctrine: >>> I have two entities connected together, one of which is the main-entity >>> so to say and one of which is the sub-entity that belongs to the >>> main-entity. Then when I use the according repository to clear, it only >>> clears the main-entity but leaves the sub-entity. >>> Flushing the entities is actually working fine, because the entities are >>> connected via cascade, so when I flush the main entity, the sub-entity gets >>> flushed also. But this cascading does not seem to work with the clear. >>> Is there a way to also clear all the sub-entites together with the main >>> entities without creating an extra (and actually not needed for other >>> things) repository for the sub-entities? Thank you in advance. >>> >>> For clarification: my goal is to *clear* the entities in doctrine, *not* >>> delete >>> them in the database. The problem is, that I have a lot of entities to >>> process and doctrine doesn't clear up all entity references in the memory. >>> So is there a way to cascade that, or do I need the repositories for that? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "doctrine-user" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/group/doctrine-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
