[CDBI] Weird things with has_a and lazy population
perrin at elem.com
Wed Nov 16 18:26:23 GMT 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.
More information about the ClassDBI