Closed alexgarrettsmith closed 10 years ago
That "return static::whereHas" has got to be a bug. I'm going to re-work this some to take advantage of the 4.2 global scope. Hopefully it will fix your issue.
Hello, I've done several bug fixes related to your issue. Can you please test if it's any better? Otherwise I might need your model files to do a better assessment.
Yeah all good. I made the same change to my application to work around it actually :)
:+1:
Scenario: I have ForumTopic which has the tagging trait. I then do something like Auth::user()->topicsSubscribed(). This is a many to many relationship to ForumTopic.
This is returning all topics when I do
$subscribed->withAnyTag(...)
, instead of the tags for the related model.For example, if I change the following, it works. But, obviously this isn't the solution :)