UniqueConstraint Attribute does not support flags while DBAL does #7497

Open
opened 2026-01-22 15:52:24 +01:00 by admin · 0 comments
Owner

Originally created by @raalderink on GitHub (Apr 16, 2025).

Bug Report

Q A
Version all

Summary

The UniqueConstraint attribute does not contain the flags property like the Index attribute does. However, in DBAL, the UniqueConstraint does allow for flags to be passed to it. Since this is missing, we are unable to add the MySQL fulltext flag to this unique column.

Current behavior

flags property does not exist

Expected behavior

flags property is available so flags can be added to UniqueConstraint through PHP's Attributes

0b373f6c27/src/Mapping/UniqueConstraint.php (L17-L22)

3004e93509/src/Schema/UniqueConstraint.php (L30)

Originally created by @raalderink on GitHub (Apr 16, 2025). ### Bug Report | Q | A |-------------------------------------------- | ------ | Version | all #### Summary The UniqueConstraint attribute does not contain the `flags` property like the `Index` attribute does. However, in DBAL, the `UniqueConstraint` does allow for `flags` to be passed to it. Since this is missing, we are unable to add the MySQL `fulltext` flag to this unique column. #### Current behavior `flags` property does not exist #### Expected behavior `flags` property is available so flags can be added to UniqueConstraint through PHP's Attributes https://github.com/doctrine/orm/blob/0b373f6c2794b50ddb2fbdd904b11e6edc066be0/src/Mapping/UniqueConstraint.php#L17-L22 https://github.com/doctrine/dbal/blob/3004e93509da3616cc298fb5805db413cc903ef6/src/Schema/UniqueConstraint.php#L30
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7497