Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1094

Add Order and Limit to EntityRepository::findBy()

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      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);
      

        Activity

        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - Implemented, just for findBy() though as findAll() is just a proxy to that in most cases.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: