Feature #3955

Implement limit and ordering for persistence queries

Added by Karsten Dambekalns almost 13 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
Persistence
Start date:
2009-07-22
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

This needs to be possible:

return $query->matching($query->equals('blog', $blog))->setOrderings(array('date' => \F3\FLOW3\Persistence\QueryInterface::ORDER_ASCENDING))->setLimit($limit)->execute();

#1

Updated by Bastian Waidelich almost 13 years ago

Not sure, but I think "ordering" has a wrong meaning: http://dict.leo.org/?search=ordering

#2

Updated by Karsten Dambekalns almost 13 years ago

Bastian Waidelich wrote:

Not sure, but I think "ordering" has a wrong meaning: http://dict.leo.org/?search=ordering

You might be right, but the term is from the JSR-283 spec, where one has an Ordering interface and methods like getOrderings

So, language issues aside, this is correct. :)

#3

Updated by Jochen Rau almost 13 years ago

Maybe you want to port Extbase code ;-)

#4

Updated by Karsten Dambekalns almost 13 years ago

  • % Done changed from 0 to 50
#5

Updated by Karsten Dambekalns almost 13 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 50 to 100

This has been resolved yesterday, see #3959 for the associated commits.

Also available in: Atom PDF