[Dbix-class] Field triggers

Pedro Melo melo at simplicidade.org
Mon May 7 16:58:57 GMT 2007


Hi,

This is what I want to do: when someone inserts or updates a password  
field, I want to sha1_hex'digest it.

I was able to do this overriding both set_column() (for updates) and  
insert() (for inserts). Is this the best way?

Should I use the inflate_column instead?

Best regards,
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
Jabber ID: melo at simplicidade.org
Use Jabber!





More information about the Dbix-class mailing list