Added support for clone into the persistant collection #281

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@beberlei
Doctrine member

I think this is not enough. Its probably safer to initialize the collection. Then copy the array collection.

@web-dev

The real world problem that I was trying to solve was that manipulating the collection in a cloned instance also manipulated the collection in the original instance.

I was trying to solve this with the simplest method possible, is there a reason for making this more complex / resource hungry and initializing the collection?

@beberlei
Doctrine member

Fixed in 93f79d0 and merged into 2.2 and 2.1.x

@beberlei beberlei closed this Feb 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment