Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-169

Specifying the $sort order for a deleteOne

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • PHP Drivers

      Discussed in the doc PR: https://github.com/mongodb/laravel-mongodb/pull/2829#discussion_r1561325575

      Currently, when calling Concert::where('venue', 'Carnegie Hall')>orderBy('_id')>delete() the order is ignored. If there is many matching documents, we don't know which one will be deleted.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: