Added wherePivot to belongsToMany.