Start your All-Access Pass to unlock this challenge
Let's get tricky! Check out the following code:
$product = new Product();
$product->setName('Shuttle Lego Set!');
$entityManager->flush();
$product->setPrice(25);
$entityManager->flush();
$entityManager->persist($product);
$entityManager->flush();
$entityManager->flush();
$product->setPrice(30);
$entityManager->flush();
How many queries did Doctrine make to the database?