Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2147

Custom annotation in MappedSuperclass

    Details

    • Type: Bug Bug
    • Status: Awaiting Feedback
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: Mapping Drivers, ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Linux 3.6.6-1.fc17.x86_64

      Description

      When you try use custom annotation in mappedsuperclass like here http://pastebin.com/YMxKvcLk and then i try get metadata for class i get this error
      Undefined index: fieldName
      ClassMetadataInfo.php function addInheritedFieldMapping
      Problem is that custom annotation doesnt have fieldName.
      Quick fix is add condition to test if fieldName isset.

        Activity

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            kluk
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: