Skip to content
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

[5.7] Allow updateExistingPivot to receive an arrayable item #26167

Merged
merged 1 commit into from
Oct 23, 2018
Merged

[5.7] Allow updateExistingPivot to receive an arrayable item #26167

merged 1 commit into from
Oct 23, 2018

Conversation

Aferz
Copy link
Contributor

@Aferz Aferz commented Oct 18, 2018

This PR allows to pass an arrayable item to updateExistingPivot.

Currently there is a little bug which method updateExistingPivot allows to pass an array of ids, but the query built is with an equal operator. This causes that the rest of the passed ids are ignored, without breaking the code but causing weird behaviour in the database.

Don't know if this is on purpose. Just tell me if that is the case.

@Aferz Aferz changed the title Allow updateExistingPivot to receive an arrayable item [5.7] Allow updateExistingPivot to receive an arrayable item Oct 18, 2018
@taylorotwell taylorotwell merged commit 8aec2cb into laravel:5.7 Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants