File tree Expand file tree Collapse file tree 5 files changed +20
-15
lines changed
Type/Doctrine/data/QueryResult Expand file tree Collapse file tree 5 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 22
33use Cache \Adapter \PHPArray \ArrayCachePool ;
44use Doctrine \Common \Annotations \AnnotationReader ;
5+ use Doctrine \DBAL \DriverManager ;
56use Doctrine \ORM \Configuration ;
67use Doctrine \ORM \EntityManager ;
78use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
1819 )
1920);
2021
21- return EntityManager:: create (
22- [
22+ return new EntityManager (
23+ DriverManager:: getConnection ( [
2324 'driver ' => 'pdo_sqlite ' ,
2425 'memory ' => true ,
25- ],
26+ ]) ,
2627 $ config
2728);
Original file line number Diff line number Diff line change 22
33use Cache \Adapter \PHPArray \ArrayCachePool ;
44use Doctrine \Common \Annotations \AnnotationReader ;
5+ use Doctrine \DBAL \DriverManager ;
56use Doctrine \ORM \Configuration ;
67use Doctrine \ORM \EntityManager ;
78use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
2728
2829$ config ->setMetadataDriverImpl ($ metadataDriver );
2930
30- return EntityManager:: create (
31- [
31+ return new EntityManager (
32+ DriverManager:: getConnection ( [
3233 'driver ' => 'pdo_sqlite ' ,
3334 'memory ' => true ,
34- ],
35+ ]) ,
3536 $ config
3637);
Original file line number Diff line number Diff line change 22
33use Cache \Adapter \PHPArray \ArrayCachePool ;
44use Doctrine \Common \Annotations \AnnotationReader ;
5+ use Doctrine \DBAL \DriverManager ;
56use Doctrine \DBAL \Types \DateTimeImmutableType ;
67use Doctrine \DBAL \Types \Type ;
78use Doctrine \ORM \Configuration ;
3536 DateTimeImmutableType::class
3637);
3738
38- return EntityManager:: create (
39- [
39+ return new EntityManager (
40+ DriverManager:: getConnection ( [
4041 'driver ' => 'pdo_sqlite ' ,
4142 'memory ' => true ,
42- ],
43+ ]) ,
4344 $ config
4445);
Original file line number Diff line number Diff line change 22
33use Cache \Adapter \PHPArray \ArrayCachePool ;
44use Doctrine \Common \Annotations \AnnotationReader ;
5+ use Doctrine \DBAL \DriverManager ;
56use Doctrine \ORM \Configuration ;
67use Doctrine \ORM \EntityManager ;
78use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
2829
2930$ config ->setMetadataDriverImpl ($ metadataDriver );
3031
31- return EntityManager:: create (
32- [
32+ return new EntityManager (
33+ DriverManager:: getConnection ( [
3334 'driver ' => 'pdo_sqlite ' ,
3435 'memory ' => true ,
35- ],
36+ ]) ,
3637 $ config
3738);
Original file line number Diff line number Diff line change 22
33use Cache \Adapter \PHPArray \ArrayCachePool ;
44use Doctrine \Common \Annotations \AnnotationReader ;
5+ use Doctrine \DBAL \DriverManager ;
56use Doctrine \ORM \Configuration ;
67use Doctrine \ORM \EntityManager ;
78use Doctrine \ORM \Mapping \Column ;
3031
3132$ config ->setMetadataDriverImpl ($ metadataDriver );
3233
33- return EntityManager:: create (
34- [
34+ return new EntityManager (
35+ DriverManager:: getConnection ( [
3536 'driver ' => 'pdo_sqlite ' ,
3637 'memory ' => true ,
37- ],
38+ ]) ,
3839 $ config
3940);
You can’t perform that action at this time.
0 commit comments