Closed CrisGuzmanS closed 1 year ago
Hi @CrisGuzmanS,
The issue is not withCount()
here but the having()
clause.
I explained this here and showed a workaround: https://github.com/laravel/framework/issues/30184#issuecomment-538491118
Thank you @staudenmeir that is true. For other developer that are facing the same problem than me, i found this solution: Person::has('citations','>',$number);
is there a way to implement withCount functionality? this is what i am trying to do:
My model is: Person -> PersonPublication -> Publication -> PublicationCitation -> Citation My implementation is working fine, but i am not able to use withCount, is there a way to implement it?