Re: How do you get the class of has_a column?

[prev] [thread] [next] [Date index for 2004/10/27]

From: Tony Bowden
Subject: Re: How do you get the class of has_a column?
Date: 08:28 on 27 Oct 2004
On Wed, Oct 27, 2004 at 09:51:44AM +0200, Yuval Kogman wrote:
> > Person->has_a("address"=> "Address");
> > Is there public  method to get the class of address such as
> > Person->address->class_name.
> Person->meta_info("has_a")->{"address"}->foreign_class

You can combine a couple of those:

  Person->meta_info(has_a => 'address')->foreign_class;

Tony

How do you get the class of has_a column?
Peter Speltz 19:40 on 26 Oct 2004

Re: How do you get the class of has_a column?
Yuval Kogman 07:51 on 27 Oct 2004

Re: How do you get the class of has_a column?
Tony Bowden 08:28 on 27 Oct 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52