You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generated entity identifier in BeforeSaveCallback upon insert is no longer applied in the INSERT statement #1232
When setting an identifier in a BeforeSaveCallback, the entity id is not being considered in the actual INSERT statement. Specifically, the MutableAggregateChange is being created with a generated IdValueSource and after setting the changed entity, IdValueSource is not updated.
This is a breaking change. The workaround is to use BeforeConvertCallback. However, this should be at least documented in the release notes. Ideally, a generated identifier via BeforeSaveCallback would be still considered when updating the entity in the 2.x development line.
Activity
Use BeforeConvertCallback to generate entity identifiers.
This reintroduces the behavior of BeforeSaveCallbacks to allow for cr…
Polishing
schauder commentedon May 11, 2022
Reintroduced the behavior with 60117f1.
Use BeforeConvertCallback to generate entity identifiers.