[Dbix-class] weird result_source_instance problem

Tobias Kremer list at funkreich.de
Thu May 24 17:38:50 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();

--Tobias




More information about the Dbix-class mailing list