Re: add_to_ question
[prev]
[thread]
[next]
[Date index for 2004/09/10]
Isn't the same true if I create a new Music::CD object using create()?
Or , since has_a is declared on the CD object, when I create a new one
and supply an artistid value, it automagically gets/sets the
Music::Artist object as well?
-=Chris
On Fri, 10 Sep 2004 13:51:14 +0100, Tony Bowden <tony-cdbitalk@xxxxx.xxx> wrote:
> On Fri, Sep 10, 2004 at 07:33:24AM -0400, Christopher Laco wrote:
> > > But it's not a child object. A child object has to have the reciprocal
> > > has_a back to this object already.
> > But Music::CD does have a has_a relationship to Music::Artist.
> > Music::CD->has_a(artist => 'Music::Artist');
>
> Yes. But the "object" you're dealing with doesn't have a value for this.
>
> Tony
>