mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
UniqueConstraint Attribute does not support flags while DBAL does
#7497
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 @raalderink on GitHub (Apr 16, 2025).
Bug Report
Summary
The UniqueConstraint attribute does not contain the
flagsproperty like theIndexattribute does. However, in DBAL, theUniqueConstraintdoes allow forflagsto be passed to it. Since this is missing, we are unable to add the MySQLfulltextflag to this unique column.Current behavior
flagsproperty does not existExpected behavior
flagsproperty is available so flags can be added to UniqueConstraint through PHP's Attributes0b373f6c27/src/Mapping/UniqueConstraint.php (L17-L22)3004e93509/src/Schema/UniqueConstraint.php (L30)