[Dbix-class] weird result_source_instance problem

Tobias Kremer list at funkreich.de
Fri May 25 09:38:05 GMT 2007


> Am 24.05.2007 um 18:28 schrieb Matt S Trout:
> > On Thu, May 24, 2007 at 03:18:46PM +0200, Tobias Kremer wrote:
> >>> The problem is that even calls on MyApp::Schema::User ResultSets to
> >>> standard relationships defined via has_many trigger the execution
> >>> of the
> >>> manually added ResultSource above - which of course fails with a
> >>> "called with x bind variables when y are needed" error message.
> >>
> >> Correction: Calls to standard relationships DO work fine but I
> >> have custom
> >> methods in MyApp::Schema::User that use these relationships and
> >> they stop
> >> working:
> >
> > Can you show the calling code, please?
>
> Sure. I'm just doing something like this:
>
> my $user = $schema->resultset( 'User' )->find( 12345 );
> $user->custom_relationship();

No ideas concerning this? It's already driving me nuts :)

Is it possible that something messes up the C3 dispatch chain or something
like that? It looks like some sort of namespace clash to me.

--Tobias



More information about the Dbix-class mailing list