[FLOW3-general] Custom query [sic] - what is the best way?
Karsten Dambekalns
karsten at typo3.org
Thu Jan 12 11:13:32 CET 2012
Hi.
On 10.01.12 12:40, Mathias Bolt Lesniak, LiliO Design wrote:
> I'm wondering what the best way is to create a custom Doctrine query.
If you want to know how to do custom Doctrine things, this is the answer:
Make your repository extend …\Doctrine\Repository instead of
…\Generic\Repository. Then you have $this->entityManager available and
can use it to access anything from the EventManager to DQL queries.
> I need to optimize a search in three tables, and the fastest would be to join them (returning identities for the three different tables).
If your question was how to do joins in DQL, please check the Doctrine
documentation and/or IRC channel(s). :)
Regards,
Karsten
More information about the FLOW3-general
mailing list