Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:

      Description

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

        Activity

        Hide
        Marco Pivetta added a comment -

        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.

        Show
        Marco Pivetta added a comment - 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.
        Hide
        Christian Daguerre added a comment - - edited

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

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

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Christian Daguerre
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: