Skip to content

Commit ba64605

Browse files
committed
Don't use deprecated Doctrine classes
1 parent 4e52511 commit ba64605

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Factory/AbstractFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
namespace GraphQL\Doctrine\Factory;
66

77
use Doctrine\Common\Annotations\Reader;
8-
use Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver;
9-
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
108
use Doctrine\ORM\EntityManager;
9+
use Doctrine\Persistence\Mapping\Driver\AnnotationDriver;
10+
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
1111
use GraphQL\Doctrine\Exception;
1212
use GraphQL\Doctrine\Factory\MetadataReader\MappingDriverChainAdapter;
1313
use GraphQL\Doctrine\Types;

src/Factory/MetadataReader/MappingDriverChainAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
namespace GraphQL\Doctrine\Factory\MetadataReader;
66

77
use Doctrine\Common\Annotations\Reader;
8-
use Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver;
9-
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
8+
use Doctrine\Persistence\Mapping\Driver\AnnotationDriver;
9+
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
1010
use GraphQL\Doctrine\Exception;
1111
use ReflectionClass;
1212

tests/TypesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function testDoctrineWithMappingDriverChainMissingNamespace(): void
149149
$type = $this->types->getOutput(Post::class);
150150

151151
$config->setMetadataDriverImpl($chain);
152-
$this->expectExceptionMessage('graphql-doctrine requires GraphQLTests\Doctrine\Blog\Model\Post entity to be configured with a `Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver`.');
152+
$this->expectExceptionMessage('graphql-doctrine requires GraphQLTests\Doctrine\Blog\Model\Post entity to be configured with a `Doctrine\Persistence\Mapping\Driver\AnnotationDriver`.');
153153
$type->getFields();
154154
}
155155

@@ -160,7 +160,7 @@ public function testDoctrineWithoutAnnotationDriverMustThrow(): void
160160
$type = $this->types->getOutput(Post::class);
161161

162162
$config->setMetadataDriverImpl(new XmlDriver([]));
163-
$this->expectExceptionMessage('graphql-doctrine requires Doctrine to be configured with a `Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver`.');
163+
$this->expectExceptionMessage('graphql-doctrine requires Doctrine to be configured with a `Doctrine\Persistence\Mapping\Driver\AnnotationDriver`.');
164164
$type->getFields();
165165
}
166166

0 commit comments

Comments
 (0)