[TYPO3-mvc] problem with sql update persistence layer

Thomas Kieslich thomaskieslich at gmx.net
Wed Aug 18 11:03:32 CEST 2010


Hi
http://forge.typo3.org/issues/9270
And in  Mailinglist "Cannot update a 1:n relation".
Yesterday i had the same problem.

regards Thomas

Am 18.08.2010 08:29, schrieb Jochen Landvoigt:
> 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