Thread
#exposed
    e

    Egor Babarykin

    2 years ago
    Hi! Can anyone help me with eager loading of referrers entity I make this requests
    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
    tapac

    tapac

    2 years ago
    Could you provide an entity mapping or sample project?
    e

    Egor Babarykin

    2 years ago
    I will provide an example as soon as possible