[TYPO3-mvc] update an existing fe_user without editAction
Kevin Ulrich Moschallski
km at 3digit.de
Sat May 22 18:11:05 CEST 2010
Hi Sascha,
$newUser->getUid() is empty, there is no getter for that but i can print_r or var_dump the object and i see it hasn't any uid. This should be normal because the new object hasn't been persisted yet, so it can't have an uid. What i think i have to do is to some kind of merge the $existingUser with the $newUser, because the $existingUser has an uid of course.
Thanks for you afford, maybe some others know how to do this.
P.S.: I'm also very new to extbase :)
Regards,
Kevin Moschallski
Am 22.05.2010 um 17:59 schrieb S.Korth:
>> I can't figure out what's the problem here. When i print_r the $exisitingUser object it has a value for uid.
>
> Hey Kevin,
>
> iam new to extbase, but as far as i know, the update function does the same as the replace funktion. The update function gets the uid from the existing object for you and calls the replace function.
>
> What does $newUser->getUid() say ? I think if you want to update or replace an Object it needs also an uid.
>
> Sascha
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list