Details
-
Type:
Task
-
Status:
Closed
-
Priority:
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
Already fixed on documentation.