[TYPO3-mvc] create saves empty objects
Xavier Perseguers
xavier at typo3.org
Wed Jan 18 13:58:59 CET 2012
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
More information about the TYPO3-project-typo3v4mvc
mailing list