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?
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]