Skip to content

Loading…

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 · 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
@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.