Skip to content

Commit b00fd55

Browse files
Fixed optional dependency from doctrine/common to doctrine/persistence
1 parent df8cdbe commit b00fd55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EntityType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
use Symfony\Component\OptionsResolver\OptionsResolver;
3333

3434
if (!interface_exists(ManagerRegistry::class)) {
35-
throw new \LogicException('You cannot use "DarkWebDesign\SymfonyAddonFormTypes\EntityType" as the "doctrine/common" package is not installed. Try running "composer require doctrine/common".');
35+
throw new \LogicException('You cannot use "DarkWebDesign\SymfonyAddonFormTypes\EntityType" as the "doctrine/persistence" package is not installed. Try running "composer require doctrine/persistence:^1.0".');
3636
}
3737

3838
/**
@@ -73,7 +73,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
7373
public function configureOptions(OptionsResolver $resolver): void
7474
{
7575
if (!interface_exists(ObjectManager::class)) {
76-
throw new \LogicException(sprintf('You cannot use "%s" as the "doctrine/common" package is not installed. Try running "composer require doctrine/common".', __CLASS__));
76+
throw new \LogicException(sprintf('You cannot use "%s" as the "doctrine/persistence" package is not installed. Try running "composer require doctrine/persistence:^1.0".', __CLASS__));
7777
}
7878

7979
$registry = $this->registry;

0 commit comments

Comments
 (0)