mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Commit order reversed? #7210
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @olivier1980 on GitHub (Aug 9, 2023).
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: https://github.com/doctrine/orm/pull/10547
@olivier1980 commented on GitHub (Aug 9, 2023):
Apparently this is now the new behaviour:
and they don't consider it a BC breaking change lol
@greg0ire commented on GitHub (Aug 9, 2023):
Damn right we don't! And the paragraph you're quoting does not document new behavior. It merely newly documents that using the ORM does not and never did guarantee any particular insertion order.
@derrabus commented on GitHub (Aug 10, 2023):
FTR, duplicate of #10864