[FLOW3-general] Getting all Values of some Objects Property
marc neuhaus
apocalip at googlemail.com
Thu Jan 21 13:17:15 CET 2010
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