Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit order reversed? #10897

@olivier1980

Description

@olivier1980

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions