[TYPO3-mvc] Cloning an objectStorage

Philipp Thiele philipp.thiele at whitemouse.de
Thu May 2 13:43:52 CEST 2013


Hi Philipp,

maybe you want to try ext:tool from Claus Due (
http://typo3.org/extensions/repository/view/tool) and its
Tx_Tool_Service_CloneService

Good luck :o)

Philipp


2013/5/2 Philipp <philippwrann at gmx.at>

> 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?
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>
>


More information about the TYPO3-project-typo3v4mvc mailing list