Add options (charset, collation) to DiscriminatorColumn to align it with Column options #7100

Closed
opened 2026-01-22 15:44:41 +01:00 by admin · 1 comment
Owner

Originally created by @janedbal on GitHub (Jan 26, 2023).

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

As stated in related dbal issue, when trying to declare charset and collation for discriminator column, the only option to use is columnDefinition (which causes the migration issue described in the dbal issue). I believe that DiscriminatorColumn is not that much different from regular Column and it should support the same features.

Originally created by @janedbal on GitHub (Jan 26, 2023). ### Feature Request <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ------ | New Feature | yes | RFC | no | BC Break | no #### Summary As stated in [related dbal issue](https://github.com/doctrine/dbal/pull/5869#issue-1556699509), when trying to declare charset and collation for discriminator column, the only option to use is `columnDefinition` (which causes the migration issue described in the dbal issue). I believe that [DiscriminatorColumn](https://github.com/doctrine/orm/blob/2.14.1/lib/Doctrine/ORM/Mapping/DiscriminatorColumn.php) is not that much different from regular [Column](https://github.com/doctrine/orm/blob/2.14.1/lib/Doctrine/ORM/Mapping/Column.php) and it should support the same features.
admin added the Bug label 2026-01-22 15:44:41 +01:00
admin closed this issue 2026-01-22 15:44:41 +01:00
Author
Owner

@mattjanssen commented on GitHub (Feb 15, 2024):

Was this resolved with https://github.com/doctrine/orm/pull/10601 ?

@mattjanssen commented on GitHub (Feb 15, 2024): Was this resolved with https://github.com/doctrine/orm/pull/10601 ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7100