Skip to content

Commit d421cf1

Browse files
committed
Fix highest jobs with Doctrine ^3.0
1 parent bb9a7e8 commit d421cf1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/LiveComponent/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"twig/twig": "^3.10.3"
3636
},
3737
"require-dev": {
38-
"doctrine/annotations": "^1.0",
38+
"doctrine/annotations": "^1.0|^2.0",
3939
"doctrine/collections": "^1.6.8|^2.0",
4040
"doctrine/doctrine-bundle": "^2.4.3",
41-
"doctrine/orm": "^2.9.4",
41+
"doctrine/orm": "^2.9.4|^3.0",
4242
"doctrine/persistence": "^2.5.2|^3.0",
4343
"phpdocumentor/reflection-docblock": "5.x-dev",
4444
"symfony/dependency-injection": "^5.4|^6.0|^7.0|^8.0",

src/Turbo/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"require-dev": {
4141
"doctrine/doctrine-bundle": "^2.4.3",
42-
"doctrine/orm": "^2.8 | 3.0",
42+
"doctrine/orm": "^2.8|^3.0",
4343
"phpstan/phpstan": "^2.1.17",
4444
"symfony/asset-mapper": "^6.4|^7.0|^8.0",
4545
"symfony/debug-bundle": "^5.4|^6.0|^7.0|^8.0",

src/Turbo/tests/app/Kernel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ protected function configureContainer(ContainerConfigurator $container): void
106106
if (version_compare($doctrineBundleVersion, '2.9.0', '>=')) {
107107
$doctrineConfig['orm']['report_fields_where_declared'] = true;
108108
}
109+
110+
if (\PHP_VERSION_ID >= 80400 && version_compare($doctrineBundleVersion, '2.15.0', '>=')) {
111+
$doctrineConfig['orm']['enable_native_lazy_objects'] = true;
112+
}
109113
}
110114

111115
$container

0 commit comments

Comments
 (0)