To fetch the value you need to call
$obj->get_column('decrypted_field_name'),
not $obj->decrypted_field_name. See docs for info on how get
$obj->decrypted_field_name working too.
2007/5/7, Oleg Pronin <[EMAIL PROTECTED]>:
For this to be done automatically,
in your result source Employee:
__PACKAGE__->resultset_attributes({
+select => [ \"AES_DECRYPT(field_name,'password')" ],
+as => [qw/ decrypted_field_name /],
});
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/