File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Resources/config/services/integrations Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616use Doctrine \Common \EventSubscriber ;
1717use Doctrine \ORM \Event \LifecycleEventArgs ;
1818use Doctrine \ORM \Event \LoadClassMetadataEventArgs ;
19+ use Doctrine \ORM \Event \PostLoadEventArgs ;
1920use Doctrine \ORM \Events ;
2021use Doctrine \ORM \Mapping \ClassMetadata ;
2122use Doctrine \ORM \Mapping \ClassMetadataInfo ;
@@ -72,7 +73,7 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs): void
7273 }
7374 }
7475
75- public function postLoad (LifecycleEventArgs $ args ): void
76+ public function postLoad (PostLoadEventArgs $ args ): void
7677 {
7778 $ entity = $ args ->getObject ();
7879
Original file line number Diff line number Diff line change 3030 <service id =" sylius.translation.translatable_listener.doctrine.orm" class =" Sylius\Bundle\ResourceBundle\EventListener\ORMTranslatableListener" >
3131 <argument type =" service" id =" sylius.resource_registry" />
3232 <argument type =" service" id =" sylius.translatable_entity_locale_assigner" />
33- <tag name =" doctrine.event_listener" connection =" default" event =" loadClassMetadata" priority =" 99" />
34- <tag name =" doctrine.event_listener" connection =" default" event =" postLoad" priority =" 99" />
33+ <tag name =" doctrine.event_subscriber" connection =" default" priority =" 99" />
3534 </service >
3635 <service id =" Sylius\Bundle\ResourceBundle\EventListener\ORMTranslatableListener" alias =" sylius.translation.translatable_listener.doctrine.orm" />
3736
You can’t perform that action at this time.
0 commit comments