Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit order reversed? #10897

Closed
olivier1980 opened this issue Aug 9, 2023 · 3 comments
Closed

Commit order reversed? #10897

olivier1980 opened this issue Aug 9, 2023 · 3 comments

Comments

@olivier1980
Copy link

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

@olivier1980

This comment was marked as abuse.

@greg0ire

This comment was marked as resolved.

@derrabus
Copy link
Member

FTR, duplicate of #10864

@derrabus derrabus reopened this Aug 10, 2023
@derrabus derrabus closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2023
@doctrine doctrine locked as too heated and limited conversation to collaborators Aug 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants