[FLOW3-general] select distinct with doctrine

Franz Kugelmann franz.kugelmann at elementare-teilchen.de
Wed May 4 15:38:35 CEST 2011


Hi list,

in the old implementation of persistence we could/should not use a thing  
like distinct [1].
Now with Doctrine the documentation [2] says we can use statements like
$query = $em->createQuery('SELECT DISTINCT u.id FROM CmsArticle a JOIN  
a.user u');

Right now i don´t grasp if we have the possibility for such a distinct  
call to the FLOW3 repository.
At least in the Query-Object i cannot see a way for it.

Is there a possibility for DISTINCT-Statements? Should we use it if it´s  
possible?

Thanks for sharing ideas!
Franz

[1] http://flow3.typo3.org/about/faq/persistence/
[2]  
http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html
-- 
Franz Kugelmann, www.elementare-teilchen.de


More information about the FLOW3-general mailing list