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

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

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

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

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

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