[TYPO3-mvc] problem with sql update persistence layer

Jochen Landvoigt j.landvoigt at siwa.at
Wed Aug 18 21:13:46 CEST 2010


  Hi!

This patch works fine, thanks!

regards

Jochen

Am 18.08.2010 11:03, schrieb Thomas Kieslich:
> 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
>>
>
> _______________________________________________
> 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