Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Autocomplete/tests/Fixtures/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ protected function build(ContainerBuilder $container): void
public function process(ContainerBuilder $container): void
{
$container->removeDefinition('doctrine.orm.listeners.pdo_session_handler_schema_listener');

if (\PHP_VERSION_ID >= 80400) {
// Workaround for `RuntimeException: Unable to create the Doctrine Proxy directory "". in vendor/symfony/doctrine-bridge/CacheWarmer/ProxyCacheWarmer.php:49`
// when running PHP 8.4 and Doctrine ORM 3.5+.
$container->getDefinition('doctrine.orm.default_configuration')
->addMethodCall('setProxyDir', ['%doctrine.orm.proxy_dir%']);
}
}
}, PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);
}
Expand Down Expand Up @@ -126,6 +133,9 @@ protected function configureContainer(ContainerConfigurator $c): void
];
}
if (null !== $doctrineBundleVersion = InstalledVersions::getVersion('doctrine/doctrine-bundle')) {
if (version_compare($doctrineBundleVersion, '2.8.0', '>=')) {
$doctrineConfig['orm']['enable_lazy_ghost_objects'] = true;
}
if (\PHP_VERSION_ID >= 80400 && version_compare($doctrineBundleVersion, '2.15.0', '>=')) {
$doctrineConfig['orm']['enable_native_lazy_objects'] = true;
}
Expand Down
Loading