src/PN/Bundle/ProductBundle/EventListener/ProductSubscriber.php
// to both the entity object of the event and the entity manager itself
to both the entity object of the event and the entity manager itself
to both the entity object of the event and the entity manager itself
public function postLoad(LifecycleEventArgs $args)
    {
        $entity = $args->getObject();
        if (!$entity instanceof Product) {
            return;
        }
        $this->container->get(ProductDTOService::class)->get($entity);
    }
public function postLoad ( LifecycleEventArgs $ args ) { $ entity = $ args -> getObject ( ) ; if ( ! $ entity instanceof Product ) { return ; } $ this -> container -> get ( ProductDTOService :: class ) -> get ( $ entity ) ; }
to both the entity object of the event and the entity manager itself
to both the entity object of the event and the entity manager itself