https://kotlinlang.org logo
#exposed
Title
# exposed
e

Egor Babarykin

10/29/2019, 11:33 AM
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

tapac

10/30/2019, 3:42 AM
Could you provide an entity mapping or sample project?
e

Egor Babarykin

11/01/2019, 3:41 PM
I will provide an example as soon as possible
2 Views