Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes creation of polymorphic belongToMany associations in one step #7159 #7181
Pull Request check-list
Please make sure to review and check all of these items:
NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
Description of change
Fixes the issue I described in the comments of #7159, which is exactly the same issue except it's located in a different code path.
The following example from the documentation mentions the creation of associations with belongsToMany relations in one step, but it didn't actually work. This PR makes it work.