[Dbix-class] weird result_source_instance problem

Tobias Kremer list at funkreich.de
Sat May 26 19:12:11 GMT 2007


> 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




More information about the Dbix-class mailing list