diff --git a/composer.json b/composer.json index 878f597ef..ecd51bfab 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ "sylius/resource": "self.version" }, "require-dev": { - "doctrine/orm": "^2.5", + "doctrine/orm": "^2.14", "lchrusciel/api-test-case": "^5.0", "matthiasnoback/symfony-dependency-injection-test": "^4.2.1", "pagerfanta/pagerfanta": "^3.0", @@ -77,7 +77,7 @@ "rector/rector": "^0.13.5" }, "suggest": { - "doctrine/orm": "^2.5", + "doctrine/orm": "^2.14", "sylius/locale": "^1.0" }, "config": { diff --git a/src/Bundle/EventListener/ORMTranslatableListener.php b/src/Bundle/EventListener/ORMTranslatableListener.php index e2e93523b..3b1305f9f 100644 --- a/src/Bundle/EventListener/ORMTranslatableListener.php +++ b/src/Bundle/EventListener/ORMTranslatableListener.php @@ -14,8 +14,8 @@ namespace Sylius\Bundle\ResourceBundle\EventListener; use Doctrine\Common\EventSubscriber; -use Doctrine\ORM\Event\LifecycleEventArgs; use Doctrine\ORM\Event\LoadClassMetadataEventArgs; +use Doctrine\ORM\Event\PostLoadEventArgs; use Doctrine\ORM\Events; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Mapping\ClassMetadataInfo; @@ -69,7 +69,7 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs): void } } - public function postLoad(LifecycleEventArgs $args): void + public function postLoad(PostLoadEventArgs $args): void { $entity = $args->getObject();