[Dbix-class] modfiying data on retrieval

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Mon Mar 5 16:06:58 GMT 2007


Dave Howorth wrote:
>>>>> I think the best approach is to suppress these characters as I retrieve
>>>>> the fields from the database, so I guess I need to override some method
>>>>> (in my Schema ?) but I haven't figured out which.

> The only place the word inflator appears in the code base is in
> DBIx/Class/InflateColumn.pm. Do you mean to use inflate_column? That
> also looks like it has to be done column-by-column? I'm looking for a
> place to hook into the main retrieval path.

Single-stepping my application has thrown up DBIx::Class::AccessorGroup
as a possibility. Is that the right sort of place to be looking?

Cheers, Dave



More information about the Dbix-class mailing list