[TYPO3-mvc] Cannot update a 1:n relation

Steffen Ritter info at rs-websystems.de
Thu Aug 12 10:48:02 CEST 2010


Am 12.08.2010 10:13, schrieb Xavier Perseguers:
> Hi,
>
> I have a Company with a contact (1:n => Person).
>
> I made an edit form to change the contact (only the contact) using a
> form.select input element. UpdateAction on Company is properly called
> with new contact (debug on $company shows the new contact).
>
> I make a
>
> $this->companyRepository->update($company);
>
> but my company is not updated (the contact is still the previous one
> after the operation). What may be wrong?
>
> Xavier
Hey Xavier,
I'm have an similiar Problem...

I have an 1:n relation via mm-Table. There also the "adding" from the 
1-Side like $donation->setProject() does not work.

I always have to do $project->addDonation($donation) and update the 
project, too.

regards


More information about the TYPO3-project-typo3v4mvc mailing list