in reply to Re: field names and Class::DBI
in thread field names and Class::DBI
Just to clarify. The documentation says:
When setting up the relationship we examine the foreign class's has_a() declarations to discover which of its columns reference our class. If no such declarations are set up, or none match, we assume that it is linking to us via a column named after the moniker() of our class. If this is not true you can pass an additional third argument to the has_many() declaration stating which column of the foreign class references us.In my case the other table does have the has_a() declaration - so it should work the way I wrote.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: field names and Class::DBI
by bart (Canon) on Feb 19, 2004 at 17:09 UTC |