My main question is, what is the best way to use @UniqueEntity with encrypted data, to avoid duplication data?
For example, when I persist an encrypted email in the database, each time the same email is used, a different random encrypted string is generated. Therefore, it’s not possible to check if that email already exists in the database.
Thanks