mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 15:02:22 +01:00
DDC-807: Adding columnDefinition for @DiscriminatorColumn #992
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 @doctrinebot on GitHub (Sep 15, 2010).
Jira issue originally created by user lstrojny:
Current @DiscriminatorColumn does not allow to use a specific column definition. However, in the MySQL world it is quite common to use the ENUM or TINYINT datatype for efficient discriminator columns. It would be great if something like this would be possible:
@doctrinebot commented on GitHub (Sep 15, 2010):
Comment created by @beberlei:
How is ENUM efficient? Its a very bad datatype in my opinion with its sorting strangeness and alter table overhead ;)
@doctrinebot commented on GitHub (Sep 16, 2010):
Comment created by lstrojny:
The alternative with MySQL is TINYINT, which has the drawback of not being self documenting but also works. But this won't be possible with discriminator columns too.
@doctrinebot commented on GitHub (Sep 17, 2010):
Comment created by mjh_ca:
Duplicate of DDC-553
@doctrinebot commented on GitHub (Feb 14, 2012):
Comment created by @guilhermeblanco:
Fixed
e6b99c2059@doctrinebot commented on GitHub (Feb 14, 2012):
Issue was closed with resolution "Fixed"