Skip to content

DDC-3424: Class Table Inheritance - wrong table order on insert with more than one level of inheritance #4230

@doctrinebot

Description

@doctrinebot

Jira issue originally created by user bmohammed:

when i use class table inheritance with multiple levels in doctrine :
Account<=User<=Dealer
(Dealer inherits from User, User from Account)
Account has the discriminator column and mapping.
when i persist a new Dealer entity I get a foreign key error because there is no row in the User table.
So the order in which the insert statements are executed:

  1. Insert into Account
  2. Insert into Dealer (which causes the error)
  3. insert into User
    Can someone help me thanks in advance.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions