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

Closed
doctrinebot opened this Issue Nov 3, 2010 · 3 comments

2 participants

@doctrinebot

Jira issue originally created by user sebak:

Hello,

I have a a single table inheritance, with a boolean discriminator field, see: http://pastie.org/1269467
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).

@doctrinebot

Comment created by @beberlei:

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

@doctrinebot

Comment created by @beberlei:

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

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-RC1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment