[TYPO3-mvc] Properties from related objects with M:M

Pascal Jungblut mail at pascal-jungblut.com
Fri Mar 19 11:28:47 CET 2010


Hello,

I've been paying around with the nice new feature #6755 (Implement a way to access properties from related objects in comparisons) using r2072. It works perfect for 1:1 relations, but there seem to be a problem when a property of another property is an M:M relation.
Let's assume I have a letter, a mailinglist for that letter and many recipients on that mailinglist (mailinglist <-- m:m --> recipient). Now, if I'm in the LetterRepository and try to fetch every letter with a recipient $recipient, I'd like to do the following:

$query->equals('mailinglist.recipient', $recipient)

But that returns an empty array. Is this a bug, err hidden feature, or do I have to modify my query?

Also: is there any way to get the actual SQL-statement that extbase used?

Thanks in advance!

Regards
Pascal


More information about the TYPO3-project-typo3v4mvc mailing list