Doctrine Common
  1. Doctrine Common
  2. DCOM-24

Documentation about Default Namespace has error.

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 2.0.0-RC1
    • Fix Version/s: None
    • Component/s: Annotations
    • Labels:
      None

      Description

      $reader->setDefaultAnnotationNamespace('Doctrine\Common\Annotations');

      I used above code to test annotations without namespaces just to find out that there there is missing \ (or 2 if you count escaping) at the end of that string.

      This works: $reader->setDefaultAnnotationNamespace('Doctrine\\Common\\Annotations
      ');

      reference guide where I found error is here: http://www.doctrine-project.org/projects/common/2.0/docs/reference/annotations/en#setup-and-configuration:default-namespace

        Activity

        Hide
        Guilherme Blanco added a comment -

        Already fixed on documentation.

        Show
        Guilherme Blanco added a comment - Already fixed on documentation.

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Margus Sipria
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: