diff --git a/src/Kdyby/Doctrine/DI/OrmExtension.php b/src/Kdyby/Doctrine/DI/OrmExtension.php index daa84659..e1aa476d 100644 --- a/src/Kdyby/Doctrine/DI/OrmExtension.php +++ b/src/Kdyby/Doctrine/DI/OrmExtension.php @@ -458,7 +458,7 @@ protected function processSecondLevelCache($name, array $config, $isDefault) } $builder->addDefinition($this->prefix($name . '.cacheRegionsConfiguration')) - ->setClass(Doctrine\ORM\Cache\RegionsConfiguration::class, [ + ->setFactory(Doctrine\ORM\Cache\RegionsConfiguration::class, [ $config['regions']['defaultLifetime'], $config['regions']['defaultLockLifetime'], ])