Answer the question
In order to leave comments, you need to log in
How are entities eager loaded in Doctrine?
Guys tell me, I ran into such a nuisance and I can’t google for 5 symphonies.
I get entity like this
$repository = $this->entity_manager->getRepository(Subscriptions::class);
$subscription = $repository->find(10);
$tariff = $subscription->getTariff();
$tariff->getCode();
Answer the question
In order to leave comments, you need to log in
The doctrine describes that you can specify fetch=eager or fetch=lazy in link mapping, for example, as here
https://www.doctrine-project.org/projects/doctrine...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question