staudenmeir / belongs-to-through

Laravel Eloquent BelongsToThrough relationships
MIT License
1.15k stars 88 forks source link

Table is undefined, table name without prefix #29

Closed mcmc4519 closed 5 years ago

mcmc4519 commented 6 years ago

I created belongsToThrough relation in model. When I use whereHas, I have error, table_name is undefined. Because table name is without prefix. How I can it change?

staudenmeir commented 5 years ago

Please add your relationship and query.

mcmc4519 commented 5 years ago

Issue can be closed, I have found other solution of my task.