DirectoryTree / LdapRecord

A fully-featured LDAP framework.
https://ldaprecord.com
MIT License
500 stars 44 forks source link

[Bug] `orWhere` cannot be called without an operator #687

Closed stevebauman closed 7 months ago

stevebauman commented 7 months ago

Environment:

Describe the bug:

Similarly to Laravel's Eloquent, LdapRecord where queries can omit the operator for an assumed equals clause:

User::where('foo', 'bar');

However, orWhere does not support the same:

User::orWhere('foo', 'bar'); // throws Exception "Invalid LDAP filter operator [bar]"