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
Hi, i want to do eager load to related into model that have revision in revisionable_type field, so for example i have revisionable_type is App\Report and inside the App\Report there is some foreign key for company_id. So i want to only load all revision for revisionable_type of App\Report where the company_id is a1000
how to do that? in normal eloquent model i can easily do eager loading and put where clause inside it. But how about this revision?
The text was updated successfully, but these errors were encountered:
t0n1zz
changed the title
eager load revision from revision type model
eager load revision from revision_type field model
Jan 20, 2019
Hi, i want to do eager load to related into model that have revision in revisionable_type field, so for example i have revisionable_type is App\Report and inside the App\Report there is some foreign key for company_id. So i want to only load all revision for revisionable_type of App\Report where the company_id is a1000
how to do that? in normal eloquent model i can easily do eager loading and put where clause inside it. But how about this revision?
The text was updated successfully, but these errors were encountered: