[FLOW3-general] Getting all Values of some Objects Property

Julian Kleinhans jk at marketing-factory.de
Thu Jan 21 13:46:06 CET 2010


Hi marc,

humm, you can write your own findBy* method in the repository and use 
the createQuery object..


cheers
julian



Am 21.01.2010 13:17, schrieb marc neuhaus:
> Hey!
>
> I was wondering how i would accomplish something equivalent to this:
>      "SELECT date FROM posts GROUP BY date;"
>
> My first idea was to get All Objects through findAll() an iterate over all
> of them and compiling an array of the Used Properties:
>      for($posts as $post)
>           $dates[$post->getDate()]++;
>
> Problem with this is, that this would take way to long if there are lots of
> $posts.
>
> Is this the only way to do something like this at the moment?
> Is something planned/specified to provide a better way to retrieve something
> like this?
>
> Greetings Marc



More information about the FLOW3-general mailing list