Short: This issue is all about being able to use doctrine with naked domain objects without any use of doctrine classes.
I 'm not talking about PersistentCollection here, fully aware of that being tied into Doctrine, but those are injected, this is all about code dependency on ArrayCollection.
Seems like some of the UnitOfWork code is cable of handling other types of arrays, like:
But in __cascade* functions this is not the case in all but two:
2 however have:
Would it be an idea to do "instanceof Traversable" instead of " instanceof Collection"?