[DDC-1219] Remove dependancy on Collection interface in Domain Objects Created: 21/Jun/11 Updated: 04/Jul/11
|Project:||Doctrine 2 - ORM|
|Reporter:||André R.||Assignee:||Benjamin Eberlei|
Short: This issue is all about being able to use doctrine with naked domain objects without any use of doctrine classes.
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"?
|Comment by André R. [ 21/Jun/11 ]|
Note: If the fist code block is always performed before the last 2 blocks then there is no issue here, just a need to make it more clear in Doc that this is possible but that you should not rely custom implementation as PersistentCollection will be injected when loaded from db.