[Dbix-class] weird result_source_instance problem
Matt S Trout
dbix-class at trout.me.uk
Fri May 25 17:00:12 GMT 2007
On Fri, May 25, 2007 at 03:48:41PM +0200, Tobias Kremer wrote:
> > > >> 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?
> >
> > Ok, I tried to strip down my schema so that you can have a look at it:
> >
> > http://www.funkreich.de/files/dbic_wreck.tar.gz
>
> Check out this dump of $user->result_source->schema(). Just by changing
> the name given to register_source the class mapping changes
Ah.
F**k.
I think we need a way to indicate 'primary source for class' then. Or go
back and make the source_name (rather than class name) form of relationship
specification work, finally. Or both.
Thoughts?
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
More information about the Dbix-class
mailing list