Since release v2.16 this line of code won't save the entities in order of the loop anymore:
foreach ($importDossier->getKlanten() as $klant) {
$klant->setIsActive(true);
$this->entityManager->persist($klant);
}
The last line to be executed will get an earlier id in the DB than the first iteration of the loop...which seems weird. Is this expected behaviour?
I noticed work was done on the commit order here: #10547
Since release v2.16 this line of code won't save the entities in order of the loop anymore:
The last line to be executed will get an earlier id in the DB than the first iteration of the loop...which seems weird. Is this expected behaviour?
I noticed work was done on the commit order here: #10547