mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2886: Entity of Base class in STI can't be persisted because of discriminator column isn't nullable #3601
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 (Jan 5, 2014).
Originally assigned to: @beberlei on GitHub.
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 commented on GitHub (Jan 5, 2014):
Comment created by usver:
Some code for this issue
https://gist.github.com/USvER/d1699c75ec687b4587da
@doctrinebot commented on GitHub (Jan 5, 2014):
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 commented on GitHub (Jan 5, 2014):
Comment created by usver:
Not an issue
@doctrinebot commented on GitHub (Jan 5, 2014):
Issue was closed with resolution "Invalid"