Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eager load revision from revision_type field model #333

Open
t0n1zz opened this issue Jan 20, 2019 · 0 comments
Open

eager load revision from revision_type field model #333

t0n1zz opened this issue Jan 20, 2019 · 0 comments

Comments

@t0n1zz
Copy link

t0n1zz commented 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?

@t0n1zz t0n1zz changed the title eager load revision from revision type model eager load revision from revision_type field model Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant