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'.
In reply to Re: Re: Class::DBI has_a relationships
by CassJ
in thread Class::DBI has_a relationships
by CassJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |