morgon has asked for the wisdom of the Perl Monks concerning the following question:
just a quick DBIx::Class question:
What is the proper way to check if an object is dirty?
Currently I simply do
which works, however in my particular case I don't really care about which columns are dirty - only if there is at least one of them dirty, so I am throwing information away that DBIx::Class worked so hard to obtain...if( $obj->get_dirty_columns ) { # $obj is dirty ...
Is that nevertheless the proper way to check?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: checking for dirtyness in DBix::Class
by Your Mother (Archbishop) on Dec 27, 2010 at 15:00 UTC | |
by morgon (Priest) on Dec 27, 2010 at 15:57 UTC |