mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Dirty solution to detect changes at columnDefinition #7414
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 @CheAlex on GitHub (Sep 4, 2024).
Feature Request
Summary
Doctrine doesn't detect changes at
columnDefinition: https://www.doctrine-project.org/projects/doctrine-orm/en/3.2/reference/attributes-reference.html#columnDirty solution
Doctrine doesn't detect changes at
columnDefinition, but Doctrine detects mapping's changes if comment changed. The solution is to add virtual comment with value based on hash ofcolumnDefinition:columnDefinitionchanged ->hash(columnDefinition)changed -> comment changed -> Doctrine detect mapping's changesTested example