Model#first and Model#last methods are not adequate

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 12_01_17
    • Affects Version/s: 5.1.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We're running a large project and need to upgrade, but this change makes our upgrade almost impossible.

      I would expect at least a config option to enable default order by _id if no other order provided or raise an error. Because silently returning a first matched record for both #first and #last methods isn't a good solution.

              Assignee:
              Unassigned
              Reporter:
              Alexander S.
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: