Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results from ->getArrayResult(): are decrypted wrong? #14

Open
primus852 opened this issue Jul 12, 2016 · 1 comment
Open

Results from ->getArrayResult(): are decrypted wrong? #14

primus852 opened this issue Jul 12, 2016 · 1 comment

Comments

@primus852
Copy link

When getting values from getArrayResult() query, they are not decrypted so you have to do it manually.

$dspName = $this->get('ambta_doctrine_encrypt.encryptor')->decrypt($rating['displayName'])

Value in Array
3Ytmz0qWhj0Lk/New2hqCEJGXaATD+6PafxYuxuprCo=<ENC>

Expected Output of $dspName

T. H.

Actual Output of $dspName

T. H.[9�gם��)�9/P�p�^��R/��

See Stackoverflow question http://stackoverflow.com/questions/38322434/getarrayresult-alters-the-value-in-symfony

@bruno-ds
Copy link

bruno-ds commented Feb 3, 2017

for the decrypt behaviour, since it is attached to doctrine using PostLoad, it cannot be trigger when you use the QueryBuilder, I'm also looking for a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants