Commit 3d34280
committed
Guard enable_native_lazy_objects on doctrine-bundle < 2.15
The doctrine.orm.enable_native_lazy_objects config option was only
added in doctrine/doctrine-bundle 2.15, which requires PHP >= 8.1.
On the PHP 8.0 test job, Composer resolves an older doctrine-bundle
that doesn't recognise this key, so the test app's Doctrine schema
creation step failed with:
Unrecognized option "enable_native_lazy_objects" under
"doctrine.orm.entity_managers.default".
Move the option into a separate config file that TestKernel only
loads when the installed doctrine-bundle version actually supports
it, detected via Composer\InstalledVersions. This keeps native lazy
objects enabled on PHP 8.4+ with modern doctrine-bundle, without
breaking older doctrine-bundle installs resolved on PHP 8.0/8.1.1 parent e23e579 commit 3d34280
3 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
54 | 77 | | |
55 | 78 | | |
56 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments