src/Parameter/EventListener/Entity/Parameter/EncryptListener.php
public function postLoad(LifecycleEventArgs $args)
    {
        $entity = $args->getEntity();

        if (!$entity instanceof Parameter) {
            return;
        }

        $key = $entity->getKey();
        $encrypt = $this->parameterCollection->get($key)['encrypt'];
        $entity->setEncrypt($encrypt);
    }
public function postLoad(LifecycleEventArgs $args)
    {
        $entity = $args->getEntity();

        if (!$entity instanceof Parameter) {
            return;
        }

        $key = $entity->getKey();
        $encrypt = $this->parameterCollection->get($key)['encrypt'];
        $entity->setEncrypt($encrypt);
    }
Set parameter entity encrypt property after retrieving them from storage.

@param \Doctrine\ORM\Event\LifecycleEventArgs $args