|
@@ -195,7 +195,8 @@ abstract class MappedEventSubscriber implements EventSubscriber
|
|
{
|
|
{
|
|
if (null === $this->defaultAnnotationReader) {
|
|
if (null === $this->defaultAnnotationReader) {
|
|
if (version_compare(\Doctrine\Common\Version::VERSION, '2.2.0-DEV', '>=')) {
|
|
if (version_compare(\Doctrine\Common\Version::VERSION, '2.2.0-DEV', '>=')) {
|
|
- $reader = new \Doctrine\Common\Annotations\AnnotationReader();
|
|
|
|
|
|
+ $reader = new \Doctrine\Common\Annotations\SimpleAnnotationReader();
|
|
|
|
+ $reader->addNamespace('Doctrine\ORM\Mapping');
|
|
\Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace(
|
|
\Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace(
|
|
'Gedmo\\Mapping\\Annotation',
|
|
'Gedmo\\Mapping\\Annotation',
|
|
__DIR__ . '/../../'
|
|
__DIR__ . '/../../'
|