mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-245: Inheritance Breaks When Child Has No Table #303
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 7, 2010).
Jira issue originally created by user mridgway:
I have a class hierarchy where the the super class uses SINGLE_TABLE inheritance:
Example:
CreateSchema runs without error and creates the tables that I would want (Block table but no DynamicBlock table and no Test table). I am then able to persist new objects of type Test, but when I try to load one again I get "Base table or view not found: 1146 Table 'db.dynamic' doesn't exist".
I'm not sure if it should be creating that table (which I wouldn't want personally) or if there's a bug when it goes to load these objects. It looks like there is some inconsistency in how this is handled.
@doctrinebot commented on GitHub (Jan 7, 2010):
Comment created by romanb:
Attached a test case that works flawlessly. Please take a look and let me know.
@doctrinebot commented on GitHub (Jan 8, 2010):
Comment created by mridgway:
Turned out to be a lingering discriminator in another class.
@doctrinebot commented on GitHub (Jan 8, 2010):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/28aa54b8b1b0bbd585df