Skip to content

Loading…

DDC-3167: Inherited property ignoral #3947

Closed
doctrinebot opened this Issue · 3 comments

2 participants

@doctrinebot

Jira issue originally created by user cdaguerre:

Hi, This isn't a bug, more a question I originally posted here: doctrine/DoctrineBundle#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 syliusproductoptions 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...

@doctrinebot

Issue was closed with resolution "Invalid"

@doctrinebot

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

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

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