Re: has_a and the accessor name

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

From: Peter Speltz
Subject: Re: has_a and the accessor name
Date: 06:23 on 28 Mar 2005
--- Josef Chladek <josef@xxxxxxxx.xxx> wrote:

> one question about is_a:
> my application is strong hierarchical, i process my classes topdown, so 
> i first create the data in main and THEN set the data in the child 
> class(es). it seems that i can't use is_a for that, because is_a wants 
> the child to be created first and then creates the parent row(s).
> 
> so with is_a there is no way to create Newsletter::Main first and THEN 
> the attributes, am i right?
> just curious about that, but might_have seems to be a perfect joice...

No. is_a creates the base class first then the sub class.  It works great. It
sets a before create trigger on your class to create the sub (parent) class.  

pjs


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

has_a and the accessor name
Josef Chladek 07:38 on 26 Mar 2005

Re: has_a and the accessor name
William Ross 08:46 on 26 Mar 2005

Re: has_a and the accessor name
Josef Chladek 19:18 on 27 Mar 2005

Re: has_a and the accessor name
.--- .- -- . ... 18:02 on 26 Mar 2005

Re: has_a and the accessor name
Peter Speltz 06:23 on 28 Mar 2005

Re: has_a and the accessor name
Josef Chladek 07:50 on 28 Mar 2005

Re: has_a and the accessor name
Peter Speltz 17:59 on 28 Mar 2005

Generated at 14:42 on 11 Apr 2005 by mariachi v0.52