File tree 5 files changed +20
-15
lines changed
Type/Doctrine/data/QueryResult
5 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
use Cache \Adapter \PHPArray \ArrayCachePool ;
4
4
use Doctrine \Common \Annotations \AnnotationReader ;
5
+ use Doctrine \DBAL \DriverManager ;
5
6
use Doctrine \ORM \Configuration ;
6
7
use Doctrine \ORM \EntityManager ;
7
8
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
18
19
)
19
20
);
20
21
21
- return EntityManager:: create (
22
- [
22
+ return new EntityManager (
23
+ DriverManager:: getConnection ( [
23
24
'driver ' => 'pdo_sqlite ' ,
24
25
'memory ' => true ,
25
- ],
26
+ ]) ,
26
27
$ config
27
28
);
Original file line number Diff line number Diff line change 2
2
3
3
use Cache \Adapter \PHPArray \ArrayCachePool ;
4
4
use Doctrine \Common \Annotations \AnnotationReader ;
5
+ use Doctrine \DBAL \DriverManager ;
5
6
use Doctrine \ORM \Configuration ;
6
7
use Doctrine \ORM \EntityManager ;
7
8
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
27
28
28
29
$ config ->setMetadataDriverImpl ($ metadataDriver );
29
30
30
- return EntityManager:: create (
31
- [
31
+ return new EntityManager (
32
+ DriverManager:: getConnection ( [
32
33
'driver ' => 'pdo_sqlite ' ,
33
34
'memory ' => true ,
34
- ],
35
+ ]) ,
35
36
$ config
36
37
);
Original file line number Diff line number Diff line change 2
2
3
3
use Cache \Adapter \PHPArray \ArrayCachePool ;
4
4
use Doctrine \Common \Annotations \AnnotationReader ;
5
+ use Doctrine \DBAL \DriverManager ;
5
6
use Doctrine \DBAL \Types \DateTimeImmutableType ;
6
7
use Doctrine \DBAL \Types \Type ;
7
8
use Doctrine \ORM \Configuration ;
35
36
DateTimeImmutableType::class
36
37
);
37
38
38
- return EntityManager:: create (
39
- [
39
+ return new EntityManager (
40
+ DriverManager:: getConnection ( [
40
41
'driver ' => 'pdo_sqlite ' ,
41
42
'memory ' => true ,
42
- ],
43
+ ]) ,
43
44
$ config
44
45
);
Original file line number Diff line number Diff line change 2
2
3
3
use Cache \Adapter \PHPArray \ArrayCachePool ;
4
4
use Doctrine \Common \Annotations \AnnotationReader ;
5
+ use Doctrine \DBAL \DriverManager ;
5
6
use Doctrine \ORM \Configuration ;
6
7
use Doctrine \ORM \EntityManager ;
7
8
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
28
29
29
30
$ config ->setMetadataDriverImpl ($ metadataDriver );
30
31
31
- return EntityManager:: create (
32
- [
32
+ return new EntityManager (
33
+ DriverManager:: getConnection ( [
33
34
'driver ' => 'pdo_sqlite ' ,
34
35
'memory ' => true ,
35
- ],
36
+ ]) ,
36
37
$ config
37
38
);
Original file line number Diff line number Diff line change 2
2
3
3
use Cache \Adapter \PHPArray \ArrayCachePool ;
4
4
use Doctrine \Common \Annotations \AnnotationReader ;
5
+ use Doctrine \DBAL \DriverManager ;
5
6
use Doctrine \ORM \Configuration ;
6
7
use Doctrine \ORM \EntityManager ;
7
8
use Doctrine \ORM \Mapping \Column ;
30
31
31
32
$ config ->setMetadataDriverImpl ($ metadataDriver );
32
33
33
- return EntityManager:: create (
34
- [
34
+ return new EntityManager (
35
+ DriverManager:: getConnection ( [
35
36
'driver ' => 'pdo_sqlite ' ,
36
37
'memory ' => true ,
37
- ],
38
+ ]) ,
38
39
$ config
39
40
);
You can’t perform that action at this time.
0 commit comments