Hi! Can anyone help me with eager loading of refer...
# exposed
e
Hi! Can anyone help me with eager loading of referrers entity I make this requests
Copy code
SomeEntity.all()
                .with(SometEntity::users)
                .toList()
This command makes sql query to db for select SometEntity from SomeTable and SomeUserEntity from SomeUserTable But when i'm calling get of SometEntity.users it makes another query to db to select SomeUserEntity only for one SomeEntity
t
Could you provide an entity mapping or sample project?
e
I will provide an example as soon as possible