[TYPO3-mvc] odd relational issue with attach
Claus Due
claus at wildside.dk
Mon Feb 20 11:15:37 CET 2012
Hi Toke,
> $Amodel->addChild($child);
> $child->addParent($Amodel);
This does not look correct. If you have an 1:n and an inversed n:1 you should not perform both of these - doing either one on its own should write all the necessary relations. However, you would not be able to properly read those related object before you persist the object and (I believe is necessary too) reload the $aModel from repository.
--
Cheers,
Claus
http://fedext.net
More information about the TYPO3-project-typo3v4mvc
mailing list