Doctrine Common
  1. Doctrine Common
  2. DCOM-55

Ugly problems with default import __NAMESPACE__ when it contains non-annotation classes that are docblock props

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None

      Description

      Say you have a class "Entity".

      Then /** @Entity */ on a class in the same namespace will try to instantiate Entity.

      We should avoid this by testing if Entity is a subclass of \Doctrine\Common\Annotations\Annotation

        Activity

        Benjamin Eberlei created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12764 ] jira-feedback2 [ 17900 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17900 ] jira-feedback3 [ 19863 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: