Use namespaced Doctrine annotations

[MAILPOET-2437]
This commit is contained in:
Jan Jakeš
2019-10-21 13:14:22 +02:00
committed by Jack Kitterhing
parent f27946444e
commit 48802e47c4
18 changed files with 104 additions and 88 deletions

View File

@ -42,7 +42,7 @@ class ConfigurationFactory {
// register annotation reader if doctrine/annotations package is installed
// (i.e. in dev environment, on production metadata is dumped in the build)
if (class_exists(SimpleAnnotationReader::class)) {
$configuration->setMetadataDriverImpl($configuration->newDefaultAnnotationDriver([self::ENTITY_DIR]));
$configuration->setMetadataDriverImpl($configuration->newDefaultAnnotationDriver([self::ENTITY_DIR], false));
} else {
// Should never be called but Doctrine requires having driver set
$configuration->setMetadataDriverImpl(new PHPDriver([]));