[Dbix-class] How to find updated fields
RA Jones
ra.jones at dpw.clara.co.uk
Thu Mar 22 23:52:20 GMT 2007
Rob Kinyon wrote:
> On 3/22/07, RA Jones <ra.jones at dpw.clara.co.uk> wrote:
>> In my applications I frequently record in a log file which fields
>> were updated by which users. Is there an easy way in DBIC to find
>> out which fields got updated during an update() or
>> update_or_insert() action? Thanks.
>
> Look for the get_dirty_columns() method on the Row object.
Thanks, I had just scanned the DBIC::Row manual, and managed to miss
that one - is_changed() looked promising, but it appears to be only for
uncommitted changes.
--
Richard Jones
Leeds, UK
mailto:ra.jones at dpw.clara.co.uk
More information about the Dbix-class
mailing list