> 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 _______________________________________________ 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/