[Dbix-class] result_source_instance error using inflate_column

Mark Hedges hedges at scriptdolphin.com
Thu Nov 19 21:54:49 GMT 2009


> Mark Hedges wrote:
> > I get this error for any class in which I try to use
> > inflate_column(), even if I have empty stub coderefs for
> > inflate and deflate.  This is in a test script by
> > itself, I'm not using Catalyst.  I saw some archive
> > messages about this error and tried the suggestions but
> > I don't see what I'm doing wrong...
> >
> >
> > Can't locate object method "result_source_instance" via
> > package "DeSpam::DC::Lame" at
> > /usr/lib/perl5/site_perl/5.8.8/DBIx/Class/ResultSourceProxy.pm
> > line 47, <DATA> line 114.

On Fri, 13 Nov 2009, Peter Rabbitson wrote:
>
> ^^^ A resultsource is useless until you declare a table()
> on it (this is not only an accessor but also an
> initializer).

This problem was all because my test script didn't get the
schema first to make DBIx::Class::Schema::Loader define the
classes before loading the external definitions.  Duh.  It
all works beautifully now, much simpler than I was trying to
make it.

Mark



More information about the DBIx-Class mailing list