DDC-2886: Entity of Base class in STI can't be persisted because of discriminator column isn't nullable #3643

Closed
doctrinebot opened this Issue Jan 5, 2014 · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user usver:

When using single table inheritance, discriminator field doesn't created as nullable... so when you persist Base class.. it has null value and you get MySQL violation

@doctrinebot

Comment created by usver:

Some code for this issue
https://gist.github.com/USvER/d1699c75ec687b4587da

@doctrinebot

Comment created by usver:

As was pointed out by Bittarman on IRC, base class was not included in DiscriminatorMap...
Closing as not an issue

@doctrinebot

Comment created by usver:

Not an issue

@doctrinebot

Issue was closed with resolution "Invalid"

@beberlei beberlei was assigned by doctrinebot 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