mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1456] No-frills support for Entity version bumping #9515
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?
Original Pull Request: https://github.com/doctrine/orm/pull/1456
State: closed
Merged: No
A cut-down version of DDC-3640 / PR #1378
This PR focuses on the "support code", and does not contain any annotations or other mechanisms for knowing when an entity's version should be bumped in the absence of "direct" modifications. Instead, it mimics other insert/update features with the methods:
These simple calls will allow users to solve tricky use-cases right now with their own custom event-listener code, and serve as a foundation for when DDC-3781 eventually defines an officially-sanctioned method.
Depends on doctrine/dbal#905