[TYPO3-mvc] Cloning Model and add to repository

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Sun Jun 13 17:48:43 CEST 2010


Am 11.06.2010 15:52, schrieb Manfred Rutschmann:
> hi list:
>
> $newlabel = clone $label
> ... make some manipulations on fields....
> $this->labelRepository->add($newlabel);
>
> gives this exception:
>
> #1222871239: The uid "60" has been modified, that is simply too much.
>
> Uid 60 is the new object. the new object is store in the db but without any
> propertys. huh?
>
> Need more exception information?
>
> Manfred

Not sure, but maybe just the error message is not correct.
Maybe you can use somethinkg like $repository->update($newlabel).

Thomas


More information about the TYPO3-project-typo3v4mvc mailing list