[TYPO3-mvc] documentation, and example exbase m:n relation query

Anja Leichsenring aleichsenring at ab-softlab.de
Mon Jun 30 09:49:04 CEST 2014


Hi Muriel,

you might want to look into the class 
typo3/sysext/extbase/Classes/Persistence/Generic/Query.php
it contains the query constraint functions. What you look for, is 
whether contains() or in(). I can't remember which - my all time flaw.

As for Documentation (german only):
http://www.amazon.de/TYPO3-Extbase-Moderne-Extension-Entwicklung-Fluid/dp/3955390705/ref=sr_1_1?s=books&ie=UTF8&qid=1404114299&sr=1-1&keywords=patrick+lobacher

It contains the cheat sheets as well, very helpful tools. Those are 
available here for free:
http://www.lobacher.de/files/cs/ExtbaseFluidCheatSheet_3.01_Lobacher.pdf

As for the complete best practise example: Feel free to blog and talk 
about it. This is what we all do, when we find the time. Maybe over 5 
years we will have what you (and all the developers out there) want :/

Regards Anja


On 30.06.2014 09:12, Muriel le Pair wrote:
> Anja Leichsenring schreef op 29-06-14 16:53:
>
>> not possible using API. Use plain SQL.
>
> Hi Anja,
>
> Strange... maybe I should rephrase my question, because I just can't
> imagine that it's not possible in extbase.
>
> How you you select all records from the main table where n:m has value 2?
>
> I have looked at some extensions where $demand was used, but then again
> they use it in different ways. So I would love to see a complete best
> practise example (that's what I mean with missing documentation) of how
> to make a select.
>
> --
> kind regards,
>
> Muriel le Pair
>
>
>
>
>



More information about the TYPO3-project-typo3v4mvc mailing list