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

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

From: Perrin Harkins
Subject: Re: [CDBI] Weird things with has_a and lazy population
Date: 18:26 on 16 Nov 2005
On Wed, 2005-11-16 at 13:00 +0300, Dmitry wrote:
> So when i do following simple test:
> 
> use ClientApp::Domain;
> my $domain = ClientApp::Domain->retrieve(1); # row actually exists in database
> print $domain->name;
> print $domain->plan;
> 
> 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.

- Perrin


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

Re: [CDBI] Weird things with has_a and lazy population
Perrin Harkins 18:26 on 16 Nov 2005

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