[Dbix-class] modfiying data on retrieval

Will Hawes wdhawes at gmail.com
Mon Mar 5 14:15:42 GMT 2007


On 05/03/07, Dave Howorth <dhoworth at mrc-lmb.cam.ac.uk> wrote:
> I need to read data from a database where fields have been entered by
> hand and have miscellaneous extraneous leading and trailing whitespace.
>
> 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.
>
> I've looked around in the Cookbook and FAQ without spotting anything.
> Could somebody give me a pointer to the right place?
>
> Thanks, Dave

Wouldn't you just override the relevant accessors in your model
classes to do this?



More information about the Dbix-class mailing list