[TYPO3-mvc] problem with sql update persistence layer
Jochen Landvoigt
j.landvoigt at siwa.at
Wed Aug 18 08:29:07 CEST 2010
hi,
I have a db table product wich has an foreign key column to another
table called country. When i get the objects from the database in my
extbase controller ( $this->produktRepository->findAll(); ) then i get
the produkt object with an country object in it. I display the country
in my fluid template with the select tag:
<f:form.select property="countries" name="countries"
options="{countries}" optionValueField="uid"
optionLabelField="name"><select><option>dummy</option></select></f:form.select>
When i try to update the object the value of the country is correct set
in object that is delivered to the updateAction in my controller. (the
attribute country holds the new country object that i have selected in
the form) but when i call $this->produktRepository->update($produkt);
only the other attributes of the object are updated but not the new
selected country.
the same problem exists in the blog_example plugin with the
administrator field in the edit field blog in my installation. (typo3 4.4.2)
has anyone a hint what is going wrong!?
thanks
regards
jochen
More information about the TYPO3-project-typo3v4mvc
mailing list