diff --git a/src/Kdyby/Doctrine/DI/OrmExtension.php b/src/Kdyby/Doctrine/DI/OrmExtension.php index fea4b7eb..7541cf0f 100644 --- a/src/Kdyby/Doctrine/DI/OrmExtension.php +++ b/src/Kdyby/Doctrine/DI/OrmExtension.php @@ -295,7 +295,7 @@ protected function processEntityManager($name, array $defaults) $metadataDriver->addSetup('setDefaultDriver', [ new Statement($this->metadataDriverClasses[self::ANNOTATION_DRIVER], [ '@' . Doctrine\Common\Annotations\Reader::class, - [Nette\DI\Helpers::expand('%appDir%', $builder->parameters)] + [$builder->expand('%appDir%')] ]) ]); } diff --git a/tests/KdybyTests/Doctrine/config/metadata-empty.neon b/tests/KdybyTests/Doctrine/config/metadata-empty.neon index 2e3265c8..54c4d439 100644 --- a/tests/KdybyTests/Doctrine/config/metadata-empty.neon +++ b/tests/KdybyTests/Doctrine/config/metadata-empty.neon @@ -1,5 +1,5 @@ parameters: - appDir: %wwwDir%/Doctrine/models2 # appDir replacing required - AnnotationDriver::getAllClassNames() require problem + appDir: %wwwDir%/Doctrine/models2 kdyby.doctrine: driver: pdo_sqlite