use registerLoader in README

This commit is contained in:
David Buchmann
2013-05-10 16:39:55 +03:00
parent 2f107dbdc6
commit e9eed839bd

View File

@@ -14,10 +14,7 @@ STABILITY: Alpha
To use the annotations, register them in your app/autoload.php file:
use Doctrine\Common\Annotations\AnnotationRegistry;
AnnotationRegistry::registerAutoloadNamespace(
'Doctrine\ODM\CouchDB\Mapping',
__DIR__ . '/../vendor/doctrine/couchdb-odm/lib/Doctrine/ODM/CouchDB/Mapping/Annotations'
);
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
## Documentation