[TYPO3-mvc] mm-relation in both directions

Xavier Perseguers typo3 at perseguers.ch
Fri Dec 31 10:24:06 CET 2010


Hi Michael,

> i've got a university model and a course model - these are in a mm
> relation:
>
> when calling $university->getCourses(), everything is working fine,
> while $course->getUniversities() does show results (also right model is
> returned), but in the wrong direction - this means it is looked up for
> uid_local and returns uid_foreign but i need it the other way round.

I guess this article could help you: 
http://buzz.typo3.org/teams/core/article/bidirection-mm-relations/

Cheers
Xavier


More information about the TYPO3-project-typo3v4mvc mailing list