On 12/15/06 5:28 PM, Jud wrote: > How can I determine which columns/fields in an object have been modified > before save? I'd like to do some auditing of an object, and it seems > like I might be able to use a mechanism similar to what save uses when > the "changes_only" parameter is supplied if that is available. However, > I couldn't find it.
Loop over meta->columns (or meta->column_names) and call the get_column_value_modified() utility function with the appropriate args. http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Util.pm#get_co lumn_value_modified -John ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object