mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
2.11.1 breaks db change detection for enum types #6927
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 @bobvandevijver on GitHub (Feb 8, 2022).
Bug Report
Summary
With 2.11.1 the database is reported as out of sync for enum based properties, while this does not happen with 2.11.0.
Current behavior
The database schema is being reported as not being in sync.
How to reproduce
Consider the following property:
with the enum being a string backed enum:
See the following console output:
I traced this back to https://github.com/doctrine/orm/pull/9382. When I comment out line 787 in the SchemaTool this issue disappears:
https://github.com/doctrine/orm/pull/9382/files#diff-8be2a95c816ec2bcf28d186a4f18ef9fa4c48b849da2ae597e9d6d9398ca17f0R787
Looking at the changeset it might actually be more of a dbal issue, we're using 2.13.7...
Expected behavior
Well, no changes should be reported :)
@bobvandevijver commented on GitHub (Feb 8, 2022):
I can confirm this does not happen with dbal 3.3.2, but it does happen with dbal 3.2.2.
@greg0ire commented on GitHub (Feb 8, 2022):
Then I think we can close this instead of transferring to DBAL, because as you may or may not know DBAL 2 is being sunset. Also DBAL 3.2 is not maintained either.