Wednesday, February 5, 2014

How to decrypt the encrypted column in join table?

Hello Everyone:
I implement the encrypt/decrypt function in beforeSave and afterFind
function and fine to work.
If I just search the data in the same table, it's fine, the result is
correct.
But if I search the data that are in join table, it won't call afterFind
by itself, so the result is encrypted result.
How can I solve it? thanks!
ps: I don't set any association with these tables, just set 'joins' in the
find options.

Thanks a lot!



--
View this message in context: http://cakephp.1045679.n5.nabble.com/How-to-decrypt-the-encrypted-column-in-join-table-tp5717437.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: