whereNot creates incorrect query using $not operator

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • laravel-4.0.0
    • Affects Version/s: laravel-4.0.0
    • Component/s: Laravel
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      User::whereNot('title', 'admin')->get()

      Generates the following query

      { $not: { title: 'admin' }}

      Which is incorrect

      unknown top level operator: $not. If you are trying to negate an entire expression, use $nor.

              Assignee:
              Jérôme Tamarelle
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: