DDC-3167: Inherited property ignoral #3926

Closed
opened 2026-01-22 14:31:35 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 16, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user cdaguerre:

Hi, This isn't a bug, more a question I originally posted here: https://github.com/doctrine/DoctrineBundle/issues/297

I have the following entity hierarchy, MyProduct being a parent entity mapped through class table inheritance :

SyliusProduct # Mapped superclass containing the 'options' association mapping
-- MyProduct # Mapped superclass that should override the association (Head of CTI)
---- MyProduct1 # Ultimate children (entities)
---- MyProduct2
---- MyProduct3
---- MyProduct4

I can't change the mapping of SyliusProduct (it's part of a Symfony vendor).
When generating the schema, doctrine wants to generate sylius_product_options tables for each ultimate child, which throws a 'tables exists' exception.

Is there a way to either:

  • map the association at ultimate child level by creating 4 different tables (and specify different table names)?
  • map it at MyProduct level?
  • Simply ignore the association?

I hope this is the right place and way to ask this question...

Originally created by @doctrinebot on GitHub (Jun 16, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user cdaguerre: Hi, This isn't a bug, more a question I originally posted here: https://github.com/doctrine/DoctrineBundle/issues/297 I have the following entity hierarchy, MyProduct being a parent entity mapped through class table inheritance : SyliusProduct # Mapped superclass containing the 'options' association mapping -- MyProduct # Mapped superclass that should override the association (Head of CTI) ---- MyProduct1 # Ultimate children (entities) ---- MyProduct2 ---- MyProduct3 ---- MyProduct4 I can't change the mapping of SyliusProduct (it's part of a Symfony vendor). When generating the schema, doctrine wants to generate sylius_product_options tables for each ultimate child, which throws a 'tables exists' exception. Is there a way to either: - map the association at ultimate child level by creating 4 different tables (and specify different table names)? - map it at MyProduct level? - Simply ignore the association? I hope this is the right place and way to ask this question...
admin added the Bug label 2026-01-22 14:31:35 +01:00
admin closed this issue 2026-01-22 14:31:35 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 16, 2014):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Jun 16, 2014): Issue was closed with resolution "Invalid"
Author
Owner

@doctrinebot commented on GitHub (Jun 16, 2014):

Comment created by @ocramius:

Hi, sorry, but I have to close the ticket as it is not an issue/feature request. Use http://stackoverflow.com/ for such kind of questions.

Feel free to provide a link to the question in a comment below once you've ported it to SO.

@doctrinebot commented on GitHub (Jun 16, 2014): Comment created by @ocramius: Hi, sorry, but I have to close the ticket as it is not an issue/feature request. Use http://stackoverflow.com/ for such kind of questions. Feel free to provide a link to the question in a comment below once you've ported it to SO.
Author
Owner

@doctrinebot commented on GitHub (Jun 17, 2014):

Comment created by cdaguerre:

OK, so I guess this 'feature' exists?
I asked the question here: http://stackoverflow.com/questions/24271957/doctrine-class-table-inheritance-and-property-ignoral

@doctrinebot commented on GitHub (Jun 17, 2014): Comment created by cdaguerre: OK, so I guess this 'feature' exists? I asked the question here: http://stackoverflow.com/questions/24271957/doctrine-class-table-inheritance-and-property-ignoral
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3926