Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-886

Mapped Supperclass composite identifier is ignored in child class

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.0-RC1
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None
    • Environment:
      all

      Description

      Currently $class->isIdentifierComposite value stays "false" if no new identifiers were added on child class..

      patch proposal:
      around line 270, file: ClassMetadataFactory.php

      add line:
      $class->isIdentifierComposite = $parent->isIdentifierComposite;

      this way if supperclass had composite identifier and child had none identifiers
      the result would be as suspected.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Schedule for RC1

        Show
        Benjamin Eberlei added a comment - Schedule for RC1
        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Gediminas Morkevicius
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: