[TYPO3-mvc] Cloning an objectStorage

Philipp philippwrann at gmx.at
Thu May 2 13:11:56 CEST 2013


Hey

When cloning an objectStorage the object instances are not cloned also, how would you realize a deep clone at that point?
I have a transient Model holding an ObjectStorage which holds Transient Models which - again - holds an ObjectStorage. That is a pretty complex and dynamic search form with multiple filters.

So one solution would be to NOT use objects here and render everything into simple properties, eg use an array instead of ObjectStorage. An other solution would be a deep clone. I dont really know of such a technique... unsearialize(serialize()) is not possible with an ObjectStorage as i understood.

Suggestions?


More information about the TYPO3-project-typo3v4mvc mailing list