From: | "Jonathan Swartz" <swartz [...] pobox.com> |
To: | <cdbi-talk [...] groups.kasei.com> |
Subject: | small bug with column declaration |
Date: | Sun, 9 Nov 2003 07:47:25 -0800 |
If you declare columns like this:
__PACKAGE__->columns (All => qw(foo bar baz))
__PACKAGE__->columns (Primary => qw(baz));
then the foo() accessor does not work until the object is fleshed out by
some other method, because the foo column is still considered to be in the
primary column group.
Switching the lines made it work. It's just that this order used to work in
previous versions of Class::DBI, before the automatic assigning of first
column as primary key.
Jon