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

        Hide
        Benjamin Eberlei added a comment -

        Actually this problem is more problematic, we have to enforce extending \Doctrine\Common\Annotations\Annotation for ALL annotations.

        Show
        Benjamin Eberlei added a comment - Actually this problem is more problematic, we have to enforce extending \Doctrine\Common\Annotations\Annotation for ALL annotations.
        Hide
        Benjamin Eberlei added a comment -

        Fixed.

        Show
        Benjamin Eberlei added a comment - Fixed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: