[Dbix-class] Emulating CDBI "temp" columns

Drew Taylor taylor.andrew.j at gmail.com
Fri Jul 21 18:39:09 CEST 2006


On 7/21/06, Mark Blythe <list at markblythe.com> wrote:
> You'll probably have to move your base class into a different section
> of the class namespace to avoid having it auto-loaded.  Something like
> My::SchemaBase rather than My::Schema::BaseClass.  Until there's an
> exclusion mechanism for load_classes().

Simple and elegant. I like it! :-)

Devs: be on the lookout for a patch which adds load_classes_except()...

Drew


> On 7/21/06, Drew Taylor <taylor.andrew.j at gmail.com> wrote:
> > On 7/21/06, Christopher H. Laco <claco at chrislaco.com> wrote:
> > >
> > > I'd suspect that it barfed because when the schema tried loading the
> > > result source classes, it tried loading My::Schema::BaseClass as it's
> > > own source, which it isn't.
> >
> > I just setup a test, and excluding the BaseClass did the trick! Now I
> > just need an easy way to say "load all BUT this class" without having
> > to specify all the classes by hand. :-)
> >
> > Drew
> > --
> > ----------------------------------------------------------------
> >  Drew Taylor                 *  Web development & consulting
> >  Email: drew at drewtaylor.com  *  Site implementation & hosting
> >  Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
> >  ----------------------------------------------------------------
> >
> > _______________________________________________
> > 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/
> >
>
> _______________________________________________
> 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/
>


-- 
----------------------------------------------------------------
 Drew Taylor                 *  Web development & consulting
 Email: drew at drewtaylor.com  *  Site implementation & hosting
 Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
 ----------------------------------------------------------------



More information about the Dbix-class mailing list