[Dbix-class] get_columns() with inflaters
Michele Beltrame
mb at italpro.net
Wed Mar 29 22:53:01 CEST 2006
Hello!
I need to copy all the columns of a row object into an hash, so I do:
my $o = $c->model('Dbs')->resultset('Book')->find($id);
my %myhash = $o->get_columns;
This works fine, but inflaters are not called: that is, I get the data
exactly as it is stored in the database.
I suspect this is intended but... is there a way to automatically get
all the columns into an hash *running* the inflaters as well?
Thanks,
Michele.
--
Michele Beltrame
http://www.varlogarthas.net/
ICQ# 76660101
Informativa privacy: http://www.italpro.net/em.html
More information about the Dbix-class
mailing list