Skip to content

Commit

Permalink
Update doctrine/orm and fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvw authored and lchrusciel committed Mar 10, 2023
1 parent 8ece0e4 commit bb9ed26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -77,7 +77,7 @@
"rector/rector": "^0.13.5"
},
"suggest": {
"doctrine/orm": "^2.5",
"doctrine/orm": "^2.14",
"sylius/locale": "^1.0"
},
"config": {
Expand Down
4 changes: 2 additions & 2 deletions src/Bundle/EventListener/ORMTranslatableListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit bb9ed26

Please sign in to comment.