File tree Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ a release.
18
18
---
19
19
20
20
## [ Unreleased]
21
+ ### Fixed
22
+ - Restructure the SqlWalkerCompat trait to fix optimized autoloading
21
23
22
24
## [ 3.16.0]
23
25
### Added
Original file line number Diff line number Diff line change 12
12
use Doctrine \ORM \Query \SqlWalker ;
13
13
14
14
if ((new \ReflectionClass (SqlWalker::class))->getMethod ('getExecutor ' )->hasReturnType ()) {
15
- // ORM 3.x
16
- require_once __DIR__ .'/orm-3.php ' ;
15
+ /**
16
+ * Helper trait to address compatibility issues between ORM 2.x and 3.x.
17
+ *
18
+ * @mixin SqlWalker
19
+ *
20
+ * @internal
21
+ */
22
+ trait SqlWalkerCompat
23
+ {
24
+ use SqlWalkerCompatForOrm3;
25
+ }
17
26
} else {
18
- // ORM 2.x
19
- require_once __DIR__ .'/orm-2.php ' ;
27
+ /**
28
+ * Helper trait to address compatibility issues between ORM 2.x and 3.x.
29
+ *
30
+ * @mixin SqlWalker
31
+ *
32
+ * @internal
33
+ */
34
+ trait SqlWalkerCompat
35
+ {
36
+ use SqlWalkerCompatForOrm2;
37
+ }
20
38
}
Original file line number Diff line number Diff line change 30
30
*
31
31
* @internal
32
32
*/
33
- trait SqlWalkerCompat
33
+ trait SqlWalkerCompatForOrm2
34
34
{
35
35
/**
36
36
* Gets an executor that can be used to execute the result of this walker.
Original file line number Diff line number Diff line change 32
32
*
33
33
* @internal
34
34
*/
35
- trait SqlWalkerCompat
35
+ trait SqlWalkerCompatForOrm3
36
36
{
37
37
/**
38
38
* Gets an executor that can be used to execute the result of this walker.
You can’t perform that action at this time.
0 commit comments