[TYPO3-mvc] Cloning Model and add to repository

Martin Kutschker masi-no at spam-typo3.org
Mon Jun 14 15:56:37 CEST 2010


Sebastian Kurfürst schrieb:
> Hey,
> 
>> Are you suggesting a workaround or is clone() officialy a no go?
> I am not 100% sure on this yet. Right now, using clone is in sync with
> FLOW3. So, a clone is supposed to return the same object, but without
> the connection to the repository. When I re-think this, I believe this
> still makes sense.
> 
> So, I guess we'd need to document in a better way the behavior of clone :-)

But that's what he tried to do. He cloned an old object to get a new one. He already assumed that it
had no connection to the repositry, so he added it. That's where Extbase choked. Either a bug or he
did something else and the error message wasn't helpful enough.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list