Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2189

Bidirectional one-to-many association with Class Table Inheritance do not work

    Details

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

      Description

      Bidirectional one-to-many association with Class Table Inheritance does not work. Example.

      Entity Box;
      Entity Item;
      Entity BoxItem extends Item;

      BoxItem has ManyToOne to Box;
      Box has OneToMany to BoxItems;

      Validation Error:
      Got an error: Entities\Box: "The association Entities\Box#items refers to the owning side field Entities\BoxItem#box which does not exist.",

      1. Box.php
        0.6 kB
        Marco Pivetta
      2. Box.php
        0.6 kB
        Ro
      3. BoxItem.php
        0.4 kB
        Marco Pivetta
      4. BoxItem.php
        0.5 kB
        Ro
      5. Item.php
        0.5 kB
        Marco Pivetta
      6. Item.php
        0.6 kB
        Ro
      7. testing_box.sql
        2 kB
        Ro

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Ro
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: