Skip to content


DDC-856: Boolean discriminator field for single table inheritance does not work as expected with MySQL #5377

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user sebak:


I have a a single table inheritance, with a boolean discriminator field, see:
As MySQL does not have a boolean field, true / false should be translated to 1/0 (as it uses a TINYINT(1) field instead).

If I use 1 / 0 in the annotation instead of true / false it works, but than it's not boolean anymore...

So it should either translate that, or mention this in the documentation (although vendor specific exceptions should be avoided imo).


Comment created by @beberlei:

This is not supported, i suggest using smallint and 0 / 1 instead.


Comment created by @beberlei:

Throwing an exception now on using boolean, object, array, datetime, date or time for the discriminator column.


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0-RC1 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.