[Catalyst] Catalyst::Model::CDBI
    Bill Moseley 
    moseley at hank.org
       
    Thu Oct  6 19:18:47 CEST 2005
    
    
  
On Thu, Oct 06, 2005 at 05:04:40PM +0200, Jesper Krogh wrote:
> > On 10/6/05, Jesper Krogh <jesper at krogh.cc> wrote:
> > You just add a line like:
> > __PACKAGE__->columns(Essential => qw/id nick name cdate/);
> >
> > to your model package, and then on default only the listed columns will be
> > loaded from the database. Please read the 'LAZY POPULATION' part of CDBI
> > documentation for further explanations
> 
> Yes.. but doesn't that solutoin assumes that I have a "model" class?
> I dont, since it uses Class::DBI::Loader to load the database model.
If you like.  Or just do this someplace convenient:
   MyModel::SomeClass->columns( Essential => @cols );
-- 
Bill Moseley
moseley at hank.org
    
    
More information about the Catalyst
mailing list