-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
newPivot method is the same as Laravel #185
Conversation
That commit explains why we have this method. The code is the same visually, but by having the override here we are returning a |
@@ -148,7 +148,7 @@ public function newQueryForRestoration($ids) | |||
} | |||
|
|||
if (!str_contains($ids, ':')) { | |||
return parent::newQueryForRestoration($ids); | |||
return parent::newQueryForRestoration([$ids]); |
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.
This matches Laravel's code exactly, so I'm fine not making this change. Really what should be changed is the docblock in Laravel's code.
No need to duplicate the same code here.