Hi, I have two schemas connecting to two related databases. I'd like some way of "joining" between the two, i.e. to be able to do this:
my $record = App::Schema1::RS->find(1); my $rec2 = $record->rec_from_schema2; Where $rec2 is something from Schema2, i.e. data from a different database. I thought I may be able to setup a relationship from one schema to the other, and DBIC would just DWIM, e.g. App::Schema1::RS->belongs_to( 'rec_from_schema2' => 'App::Schema2::RS', 'fk'); But that gives me "Can't find source for App::Schema2::RS". Is there any way I can roll my own? Thanks, Sam. (Mutant)
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
