Symfony 5: Mastering Doctrine Relations
Fetching Relations
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

I'm doing some debugging and I have the following code:

public function somePage($id)
{
    $question = $questionRepository->find($id);
    $answers = $question->getAnswers();

    dd($answers);
}

When the dd() is hit, how many queries have been executed?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.