[TYPO3-mvc] create saves empty objects
Johannes C. Schulz - EnzephaloN IT-Solutions
info at enzephalon.de
Wed Jan 18 14:33:34 CET 2012
Hello Xavier
This worked so far without errors, but also without writing values inside
"user".
Is there something to know for creating new frontenduser? Maybe I have
forgotten some main things? I only write the following values: username,
password, usergroup and (my own field) accreditation.
Like:
$newAccreditation->getUser()->setUsername($newAccreditation->getCompany(),$t
his->feuserRepository->countByUsername($username));
Johannes
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Xavier Perseguers
Gesendet: Mittwoch, 18. Januar 2012 13:59
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] create saves empty objects
Hi,
> After some thinking, I tried an other way to fill my
> properties-objects of "accreditation". From new-action I receive
> "newAccreditation"-object. Now I try to write values to
> newAccreditation->user (which is an extend of
> Tx_Extbase_FrontendUser):
> $newAccreditation->user->setPassword();
> But this also doesn't work, cause "user" is a protected property.
> I really do not understand how to write into property-objects.
> Creatiing seems to work, but all of them are empty.
Seems that what you wanted to write is instead:
$newAccreditation->getUser()->setPassword();
HTH
--
Xavier Perseguers
Release Manager TYPO3 4.6
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
_______________________________________________
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