That's what the `PersistentCollection#getSnapshot()` API would give you,
although only if the collection was initialised. The original collection
data may be unknown if the collection was never initialised.

Also, please note that this is internal API.

On 15 Aug 2017 11:25 AM, <plamen.v.vasi...@circles.bz> wrote:

> Hi all,
>
> I use doctrine trough symfony 2 and I'm facing a strange problem
> When I get the original entity from UnitOfWork all one to many relations
> are present, but the many to many relations are missing.
> I want to access the original collection of old entity and compare it to
> the current entity I have. yes I know that I have getInsertDiff and
> getDeleteDiff, but I want the original entity with original many to many
> collection
> is this possible?
>
> --
> 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 doctrine-user+unsubscr...@googlegroups.com.
> To post to this group, send email to doctrine-user@googlegroups.com.
> Visit this group at https://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 doctrine-user+unsubscr...@googlegroups.com.
To post to this group, send email to doctrine-user@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to