src/Encryption/EventListener/Entity/Encryptable/PostFlushListener.php
public function postFlush(PostFlushEventArgs $args)
    {
        $maps = $args->getEntityManager()->getUnitOfWork()->getIdentityMap();

        foreach ($maps as $entities) {
            foreach ($entities as $entity) {
                if (!$entity instanceof Encryptable) {
                    continue;
                }

                $this->encryptionService->decrypt($entity);
            }
        }
    }
public function postFlush(PostFlushEventArgs $args)
    {
        $maps = $args->getEntityManager()->getUnitOfWork()->getIdentityMap();

        foreach ($maps as $entities) {
            foreach ($entities as $entity) {
                if (!$entity instanceof Encryptable) {
                    continue;
                }

                $this->encryptionService->decrypt($entity);
            }
        }
    }
Decrypt encryptable entity properties after saving in storage.

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