-
Notifications
You must be signed in to change notification settings - Fork 1.4k
PHPORM-275 PHPORM-276 Add Query\Builder::search() and autocomplete()
#3232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
38d0ee4 to
7bf4f2d
Compare
74d3005 to
132a773
Compare
Builder::search() (削除ここまで)Query\Builder::search() and autocomplete() (追記ここまで)
cdd7c53 to
905ee37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noted the @method \MongoDB\Laravel\Query\Builder toBase() annotation on this class but I'm failing to see how toBase() actually returns this library's class instead of Illuminate\Database\Query\Builder. I imagine there's some magic or trait involved that isn't clear.
Noted this probably has nothing to do with the PR, so feel free to ignore this complaint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're going to document the search() params, it'd probably make sense to do so for these as well. Alternatively, link to https://www.mongodb.com/docs/atlas/atlas-search/autocomplete/ or some other relevant documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would benefit from a docs link, like you did for search() in Eloquent\Builder.
905ee37 to
a7177ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would benefit from a docs link, like you did for search() in Eloquent\Builder.
a7177ed to
6abce65
Compare
Uh oh!
There was an error while loading. Please reload this page.
Fix PHPORM-275 and PHPORM-276
Checklist
Model::search()returns a collection of model instancesSchema::getIndexes()introspection method #3233