[TYPO3-mvc] f:form.select is not saved
Franz Koch
typo3.RemoveForMessage at elements-net.de
Mon Mar 14 10:38:39 CET 2011
Hey,
> Thanks for answering, Franz!
> Yes, an 1:1 relationship works well. Still the problem described is
> there. The reference to the country is not saved, unless I set the uid
> like this:
>
> $countryUid = $company->getCountry()->getUid();
> $company->setCountry($countryUid);
This should actually give you a exception or php error unless your
setCountry method expects an integer and not a country object. How does
your setCountry method look like (including comments) and how is the
country property declared (also including comments)?
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list