in reply to Re: Re: Re: many to many with Class::DBI
in thread many to many with Class::DBI
The code you tested works because the problem was circumvented without actually solving it. Try retrieving one key from that table instead of accessing it through relationships and the problem will become apparent. With specifying extra params with Primary, you no longer have a Class::DBI object that matches up with your data definition. The definition says that a primary key for this table is made up of a single column, so that's what Class::DBI needs to think, too.
This doesn't have anything to do with how Class::DBI is handling it internally, as all this is plainly documented. I'm not sure what the real solution is (I don't have time to make a test database and run some code against it), but I'm sure this isn't the correct solution.
----
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: many to many with Class::DBI
by Tomte (Priest) on Feb 12, 2004 at 16:21 UTC | |
by hardburn (Abbot) on Feb 12, 2004 at 16:57 UTC | |
by Tomte (Priest) on Feb 12, 2004 at 17:16 UTC |