Re: Constructing objects in multiple CDBI classes w. single SELECT

[prev] [thread] [next] [Date index for 2005/03/03]

From: Michael Graham
Subject: Re: Constructing objects in multiple CDBI classes w. single SELECT
Date: 19:16 on 03 Mar 2005

> >     # HasMany
> >     print "Artist __hasa_list: \n", Dumper(Music::Artist->__hasa_list), "\n";
> >     print "CD     __hasa_list: \n", Dumper(Music::CD->__hasa_list),     "\n";
> >     print "Track  __hasa_list: \n", Dumper(Music::Track->__hasa_list),  "\n";
> >     # HasA
> >     print "Artist __hasa_rels: \n", Dumper(Music::Artist->__hasa_rels), "\n";
> >     print "CD     __hasa_rels: \n", Dumper(Music::CD->__hasa_rels),     "\n";
> >     print "Track  __hasa_rels: \n", Dumper(Music::Track->__hasa_rels),  "\n";
> >
>
> Those are deprecated methods that are disappearing real soon now.
>
> You want Class->meta_info('has_a') and Class->meta_info('has_many').

Ah!  Very cool.  Thanks.

Michael


--
Michael Graham <magog@xxxxxxxx.xxx>


Re: Constructing objects in multiple CDBI classes w. single SELECT
Michael Graham 19:16 on 03 Mar 2005

Generated at 00:32 on 04 Mar 2005 by mariachi v0.52