[Dbix-class] Audit Trails/History Component
Adam Paynter
adampaynter at gmail.com
Thu Aug 31 16:56:15 CEST 2006
You can always call $obj->get_dirty_columns. Is that what you need?
- Adam
On 8/31/06, Tobias Kremer <t at funkreich.de> wrote:
>
> Zitat von Brian Cassidy <brian.cassidy at nald.ca>:
>
> > Brian Cassidy wrote:
> > >
> > > Having done something similar, be aware that your "reference" to the
> id
> > > should be an actual foreign key. Try to delete a row and you'll see
> what
> > > i mean. :)
> > >
> > errr... should NOT, should NOT! :)
>
> Fortunately MySQL has no real foreign keys for MyISAM tables (yet) - other
> than that, you're right: I'd be in for a surprise :)
>
> Have you also implemented something that stores which actual columns
> changed
> (from -> to value)? I haven't figured out yet how to get a list of
> changed (dirty) columns and retrieve their value prior to any column
> updates.
> $obj->is_changed() doesn't seem to work on the object passed into the
> insert/update/delete methods in my component ...
>
> Toby
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
> Searchable Archive:
> http://www.mail-archive.com/[email protected]/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20060831/e50afaa6/attachment.htm
More information about the Dbix-class
mailing list