Subscribers/DoctrineEncryptSubscriber.php
private function addToDecodedRegistry($entity, EntityManager $em) {
        $className = get_class($entity);
        $metadata = $em->getClassMetadata($className);
        $getter = 'get' . self::capitalize($metadata->getIdentifier());
        $this->decodedRegistry[$className][$entity->$getter()] = true;
    }
private function addToDecodedRegistry($entity, EntityManager $em) {
        $className = get_class($entity);
        $metadata = $em->getClassMetadata($className);
        $getter = 'get' . self::capitalize($metadata->getIdentifier());
        $this->decodedRegistry[$className][$entity->$getter()] = true;
    }
private function addToDecodedRegistry ( $ entity , EntityManager $ em ) { $ className = get_class ( $ entity ) ; $ metadata = $ em -> getClassMetadata ( $ className ) ; $ getter = 'get' . self :: capitalize ( $ metadata -> getIdentifier ( ) ) ; $ this -> decodedRegistry [ $ className ] [ $ entity -> $ getter ( ) ] = true ; }
Adds entity to decoded registry
@param object $entity Some doctrine entity
@param \Doctrine\ORM\EntityManager $em
Adds entity to decoded registry