Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-882

The constructor type hinting of LoadClassMetadataEventArgs is not good

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: 2.0-RC1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      symfony2 framework

      Description

      The constructor type hinting of LoadClassMetadataEventArgs is not good. It should be ClassMetadataInfo and not ClassMetadata.

      ClassMetadataInfo is the base class used in the DisconnectedClassMetadataFactory. So when the event is used the argument is ClassMetadataInfo instance and not a ClassMetadata instance. I have this issue with the DoctrineBundle form the symfony2 framework.

        Activity

        Hide
        beberlei Benjamin Eberlei added a comment -

        Fixed

        Show
        beberlei Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            beberlei Benjamin Eberlei
            Reporter:
            rande Thomas Rabaix
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: