Re: [CDBI] Weird things with has_a and lazy population
[prev]
[thread]
[next]
[Date index for 2005/11/16]
>
> result:
> print $domain->name; # prints test.com
> print $domain->plan; # prints 10
>
> yes thats fine, but:
> print $domain->plan->nick; # STILL EMPTY STRING!!
Try looking at what you're getting from $domain->plan. Is it a blessed
object? Do:
print ref $domain->plan;
Also:
use Data::Dumper;
print Dumper $domain->plan;
>
> and when i do such way:
> use ClientApp::Plan;
> my $plan =3D ClientApp::Plan->retrieve(10);
> print $plan->nick; # yes, it prints "good plan" as expected
>
> My curiousity here about "has_a", why Essential thing didn't worked with
> it ???
> Thanks for help.
>
> PS: Class::DBI version 0.96
>
> --
>
>
> _______________________________________________
> ClassDBI mailing list
> ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
> http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi
>
--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
2People Blog: http://2-people.blogspot.com/
2People site: http://www.2people.org
_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi
|
|
Re: [CDBI] Weird things with has_a and lazy population
Phil Mitchell 17:58 on 16 Nov 2005
|