You can always call $obj->get_dirty_columns. Is that what you need?

- Adam

On 8/31/06, Tobias Kremer <[EMAIL PROTECTED] > wrote:
Zitat von Brian Cassidy <[EMAIL PROTECTED] >:

> 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]/

_______________________________________________
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]/

Reply via email to