Skip to content


DDC-1094: Add Order and Limit to EntityRepository::findBy() #1688

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user @beberlei:

Currently repositories are pretty much useless because you cannot limit/offset or order by columns, which is what repositories are for to implement simple list views. That is why the signatures should be extended to:

findAll(array $orderBy = null, $maxResults = null, $firstResult = null);
findOne(array $criteria, array $orderBy = null, $maxResults = null, $firstResult = null);

Comment created by @beberlei:

Implemented, just for findBy() though as findAll() is just a proxy to that in most cases.


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.