File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 15
15
use Doctrine \DBAL \Types \Type as DBALType ;
16
16
use Doctrine \ORM \EntityManager ;
17
17
use Doctrine \ORM \Mapping \Column ;
18
+ use Doctrine \ORM \ORMSetup ;
18
19
use Doctrine \ORM \Tools \Setup ;
19
20
use PHPUnit \Framework \TestCase ;
20
21
use Symfony \Bridge \Doctrine \PropertyInfo \DoctrineExtractor ;
@@ -33,7 +34,9 @@ class DoctrineExtractorTest extends TestCase
33
34
{
34
35
private function createExtractor ()
35
36
{
36
- $ config = Setup::createAnnotationMetadataConfiguration ([__DIR__ .\DIRECTORY_SEPARATOR .'Fixtures ' ], true );
37
+ $ config = class_exists (ORMSetup::class)
38
+ ? ORMSetup::createAnnotationMetadataConfiguration ([__DIR__ .\DIRECTORY_SEPARATOR .'Fixtures ' ], true )
39
+ : Setup::createAnnotationMetadataConfiguration ([__DIR__ .\DIRECTORY_SEPARATOR .'Fixtures ' ], true );
37
40
$ entityManager = EntityManager::create (['driver ' => 'pdo_sqlite ' ], $ config );
38
41
39
42
if (!DBALType::hasType ('foo ' )) {
Original file line number Diff line number Diff line change 43
43
"symfony/validator" : " ^5.2|^6.0" ,
44
44
"symfony/translation" : " ^4.4|^5.0|^6.0" ,
45
45
"symfony/var-dumper" : " ^4.4|^5.0|^6.0" ,
46
- "doctrine/annotations" : " ^1.10.4" ,
46
+ "doctrine/annotations" : " ^1.10.4|^2 " ,
47
47
"doctrine/collections" : " ^1.0|^2.0" ,
48
48
"doctrine/data-fixtures" : " ^1.1" ,
49
49
"doctrine/dbal" : " ^2.13.1|^3.0" ,
You can’t perform that action at this time.
0 commit comments