Wrapping clone() and compose_namespace() to overwrite the appropriate
key in class_mappings afterwards might do the trick?

The problem is that DBIC keeps a reverse lookup of classes to sources to
deal with $schema->source($classname) - and the current relationship
declaration style requires that.

Any chance that there might be a solution to this in the near future? I
honestly don't think I am able to patch this myself. Maybe if you
elaborate some more on what needs to be added to DBIC to make this work.
For instance, where would one specify a primary source for class if needed?

Have there already been discussions about this or am I the first one to
encounter these difficulties? IMHO this really is a serious issue
because it makes using custom SQL with the result_source_instance trick
quite unusable or at least unstable.

--Tobias


_______________________________________________
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/dbix-class@lists.rawmode.org/

Reply via email to