Re: [CDBI] Weird things with has_a and lazy population [SOLVED]

[prev] [thread] [next] [Date index for 2005/11/17]

From: Dmitry
Subject: Re: [CDBI] Weird things with has_a and lazy population [SOLVED]
Date: 10:04 on 17 Nov 2005
On Thu, 17 Nov 2005 11:26:09 +0300
Dmitry <df2@xx.xx> wrote:
> 
> > > 
> > > then it just prints empty strings
> > 
> > That's obviously broken, and you don't even have a has_a() on name().
> > Forget the lazy-loading, has_a(), etc. and just figure out why name() is
> > returning nothing when that row in the database has a value.
> 
> Now i tried to make test more clear, without columns(Essential, but
> still cant figure out what wrong:
> 
> > DBI Class:
> package ClientApp::Domain;
> use strict;                                                            
> use base qw/Catalyst::Base ClientApp:DB/;
> __PACKAGE__->set_up_table('my_domains')
> __PACKAGE__->has_a(plan => 'ClientApp::Plan');                                                     
> 1;
> 

Just found a showstopper here:
use base qw/Catalyst::Base ClientApp:DB/;
if write instead:
use base qw/ClientApp:DB/;
or
use base qw/ClientApp:DB Catalyst::Base/;
the everything works fine. 
Now i know that Catalyst::Base played a joke with me. Thanks for
response.



        -- 
        Dmitry <df2@xx.xx>


_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

Re: [CDBI] Weird things with has_a and lazy population [SOLVED]
Dmitry 10:04 on 17 Nov 2005

Generated at 21:49 on 21 Nov 2005 by mariachi v0.52