1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Clarify possible problem

This commit is contained in:
Benjamin Eberlei 2011-07-08 14:42:15 +02:00
parent ac76dafe62
commit 9a68074878

View File

@ -9,6 +9,7 @@ The EntityRepository now has an interface Doctrine\Common\Persistence\ObjectRepo
The annotation reader was heavily refactored between 2.0 and 2.1-RC1. In theory the operation of the new reader should be backwards compatible, but it has to be setup differently to work that way:
// new call to the AnnotationRegistry
\Doctrine\Common\Annotations\AnnotationRegistry::registerFile('/doctrine-src/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
$reader = new \Doctrine\Common\Annotations\AnnotationReader();