-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
PHPORM-219 Deprecate Connection::collection()
and Schema::collection()
#3062
Conversation
439ae56
to
c17b69a
Compare
…), to keep table() function from Laravel
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.
Small wording suggestion, LGTM otherwise
Co-authored-by: Andreas Braun <git@alcaeus.org>
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.
added some commits to catch some other uses of collection()
. LGTM !
Thank you @rustagir, I really appreciate your intervention. |
Fix PHPORM-219
The method MongoDB\Laravel\Connection::collection()
is an alias for Laravel’sIlluminate\Database\ConnectionInterface::table()
. I guess it was introduced when the package was created to fit MongoDB terminology.Removing this custom name fit with Laravel and remove the one of the 2 ways of doing the same thing.
Checklist