[Dbix-class] New user with JOIN problem

Chris Cole chris at compbio.dundee.ac.uk
Wed May 13 15:16:33 GMT 2009


Chris Cole wrote:
> David Ihnen wrote:
> Apologies. I used the DBIx::Class::Schema::Loader module to load the
> schema so I didn't have it explicitly. However, I got it to dump the
> schema to file.
> 
>> But I'm going to suspect that MirbaseHairpinMatch.pm MUST have a line
>> something like this in it
>>
>> __PACKAGE__->belongs_to('seq_data', 'Whatever::seq_data', { 'foreign.id'
>> => 'self.query_id' });
> 
> Close. It's:
> __PACKAGE__->belongs_to("query_id", "My::Schema::SeqData", { id =>
> "query_id" });
> 

I forgot to ask. When using the DBIx::Class::Schema::Loader how does one
find out the relationship names in the schema? Must the schema always be
dumped to file or is there a method for reporting the relationship names?



More information about the DBIx-Class mailing list