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 loading child model relationship #64

Closed
hexatex opened this issue Dec 6, 2019 · 2 comments
Closed

Eager loading child model relationship #64

hexatex opened this issue Dec 6, 2019 · 2 comments

Comments

@hexatex
Copy link

hexatex commented Dec 6, 2019

I have a parent model called Category, and two category types, Link & Dynamic. Only one of them has the relationship criteriable()

When I try to load like,

$categories->load('criteria');

I get the error, Call to undefined relationship [criteria] on model [App\Models\Category\Category]' Is eager loading that relationship possible?

@jonspalmer
Copy link
Owner

Can provide a failing test case to reproduce?

@jonspalmer
Copy link
Owner

Closing due to inactivity

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

2 participants