You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wherePivotIn saves the all the params into $this->pivotWheres, which leads to newPivotQuery consider them as normal where clause instead of whereIn clause.
The text was updated successfully, but these errors were encountered:
the reason is BelongsToMany::wherePivotIn() saves all the params $this->pivotWheres, as well as BelongsToMany::wherePivot(). when BelongsToMany::newPivotQuery() create new query builder, it will asume everything in $this->pivotWheres is created from wherePivot() and call where() on them.
I've already created a pr to fix this issue, to store and process the params separately.
framework/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
Line 135 in 5f807f6
wherePivotIn
saves the all the params into$this->pivotWheres
, which leads tonewPivotQuery
consider them as normal where clause instead of whereIn clause.The text was updated successfully, but these errors were encountered: