Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Next Chapter

Challenge #1 of 1


Q: 

Here's a tricky question. Check out this code where we persist and flush twice!

$mix = new VinylMix();
// setting data

$entityManager->persist($mix);
$entityManager->flush();

// do it again!
$entityManager->persist($mix);
$entityManager->flush();

What do you think the second persist/flush will do?

userVoice