3066 Posts in 866 Topics by 648 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 847 Views |
-
Do relations to a class work with the classes children?

7 March 2010 at 2:45am
I do have a 1:1 relation between a class Auction and a class Product.
static $has_one = array("product"=>"Product")
I intend to subclass Product for many different product categories, eg Shoe extends Product, Belt extends Product.
Would I have to define a new relation if I want a relation between Auction and Shoe? -
Re: Do relations to a class work with the classes children?

7 March 2010 at 7:49pm
No you won't have to create a new relation. If shoe is a subclass of product then shoe is still a product and has a product record. So should work fine.
-
Re: Do relations to a class work with the classes children?

7 March 2010 at 8:20pm
Thanks again, willr.
| 847 Views | ||
|
Page:
1
|
Go to Top |


