Doctrine/ORM/Listener/ObjectFilterListener.php
public function postLoad(LifecycleEventArgs $args): void
    {
        $token = $this->getTokenStorage()->getToken();

        if (!$this->getPermissionManager()->isEnabled()
                || null === $token || $token instanceof ConsoleToken) {
            return;
        }

        $object = $args->getEntity();
        $this->getObjectFilter()->filter($object);
    }
public function postLoad(LifecycleEventArgs $args): void
    {
        $token = $this->getTokenStorage()->getToken();

        if (!$this->getPermissionManager()->isEnabled()
                || null === $token || $token instanceof ConsoleToken) {
            return;
        }

        $object = $args->getEntity();
        $this->getObjectFilter()->filter($object);
    }
public function postLoad ( LifecycleEventArgs $ args ) : void { $ token = $ this -> getTokenStorage ( ) -> getToken ( ) ; if ( ! $ this -> getPermissionManager ( ) -> isEnabled ( ) || null === $ token || $ token instanceof ConsoleToken ) { return ; } $ object = $ args -> getEntity ( ) ; $ this -> getObjectFilter ( ) -> filter ( $ object ) ; }
This method is executed after every load that doctrine performs.

@param LifecycleEventArgs $args
This method is executed after every load that doctrine performs .