Subscribers/GdprSubscriber.php
/**
     * Listen a postLoad lifecycle event.
     * Decrypt any personal_data if it is encrytpted.
     * @param LifecycleEventArgs $args
     */
Listen a postLoad lifecycle event.
Decrypt any personal_data if it is encrytpted.
Listen a postLoad lifecycle event . Decrypt any personal_data if it is encrytpted .
public function postLoad(LifecycleEventArgs $args)
    {
        $entity = $args->getEntity();
        $em = $args->getEntityManager();
        if (!$this->hasInDecodedRegistry($entity)) {
            if ($this->processFields($entity, $em, false)) {
                $this->addToDecodedRegistry($entity);
            }
        }
    }
public function postLoad ( LifecycleEventArgs $ args ) { $ entity = $ args -> getEntity ( ) ; $ em = $ args -> getEntityManager ( ) ; if ( ! $ this -> hasInDecodedRegistry ( $ entity ) ) { if ( $ this -> processFields ( $ entity , $ em , false ) ) { $ this -> addToDecodedRegistry ( $ entity ) ; } } }
Listen a postLoad lifecycle event.
Listen a postLoad lifecycle event .