in reply to Re: Class::DBI has_a relationships
in thread Class::DBI has_a relationships
is doing?__PACKAGE__->has_many( sessions => [EP::Common::DBI::Sessions_Metadata => 'id'] => 'session_id' );
According to the Class::DBI perldoc, has_many works like:
has_many(method_to_create=>"foreign_class");
so I thought I needed something like:
__PACKAGE__->has_many(sessions_metadata=>"EP::Common::DB::Sessions::Metadata");
in both Users and Sessions to declare that Sessions_Metadata was referencing them. But I get the same 'can't bind a ref error'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
3Re: Class::DBI has_a relationships
by jeffa (Bishop) on May 18, 2004 at 17:07 UTC | |
by CassJ (Sexton) on May 18, 2004 at 17:30 UTC | |
by jeffa (Bishop) on May 18, 2004 at 17:44 UTC | |
by CassJ (Sexton) on May 18, 2004 at 18:03 UTC |