[Dbix-class] Cross-schema relationships.

Oleg Pronin syber.rus at gmail.com
Mon Feb 1 16:52:29 GMT 2010


Hi everyone.

I'm separating a part of database tables to second database server.
Therefore i created second schema and put a part of result sources in
there.

I discovered that cross-schema relationships doesn't work: i get error
DBIx::Class::ResultSource::related_source(): Can't find source for
MyApp::Schema::SomeRS at ...
when i try to get related source from Schema2 to Schema

Is there an easy way to workaround on it ? i understand that table
joins are not possible anymore, but in theory DBIC could continue to
support relationships without joins.
$obj->many_to_many_accessor->search(...), etc

Thanks.



More information about the DBIx-Class mailing list