in reply to Class::DBI multiple column primary and foreign keys
UPDATE: By the way, the simplest way to do it is to add your own method like this:
package MyCDBI::Code; use MyCDBI::Item; sub item { my ($self, $item_id, $sub_id) = @_; my ($item) = MyCDBI::Item->search( id => $item_id, subid => $sub_id, ); return $item; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Class::DBI multiple column primary and foreign keys
by hangareighteen (Monk) on May 21, 2004 at 20:20 UTC | |
by perrin (Chancellor) on May 21, 2004 at 20:53 UTC | |
by hangareighteen (Monk) on May 21, 2004 at 21:53 UTC | |
by perrin (Chancellor) on May 21, 2004 at 22:33 UTC | |
by Anonymous Monk on May 21, 2004 at 21:18 UTC |