absolute-quantum / DoctrineEncryptBundle

:key: Encrypted symfony entities by verified and standardized libraries
https://packagist.org/packages/michaeldegroot/doctrine-encrypt-bundle
MIT License
142 stars 74 forks source link

fix: Fix handling of proxies in DoctrineEncryptSubscriber #79

Open jeandanyel opened 9 months ago

jeandanyel commented 9 months ago

The values returned by $unitOfWork->getIdentityMap() may be instances of Proxy, which are entities that have not been loaded yet.

In this case, the @Encrypted properties of proxies should not be encrypted/decrypted, as it unnecessarily loads the entities.