This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi there, while I can create the OneToMannyAssociation with the designer, the "Update Database" command want's to add the association to the base class table, which is of course not there and fails therefor. The association needs to be added to each of the inherited entities. Kind regards, Sörnt |
|
|
In that context, what is the meaning of the "Inheritance" property at the association? Kind regards, Sörnt |
|
|
Ok, I got it. I am thinking to much in objects. Any association to a base class within a "ConcreteTableInheritance" can't be working because there is no base table to create a foreign key references. I would suggest to options: a) The simple one: Disallow associations to such a base class (and display the user a info for the reason). b) The prefered one: Introduce VerticalTableInheritance :-) :-) Kind regards,
|
|
|
You're right, we should add a warning for this. Thanks for the heads up! Note that you *can* do associations to the base class in SingleTableInheritance, because then there is a real table to foreign key to. These blog posts have a bit more info about the features (and limitations!) of LightSpeed's inheritance modes: http://www.mindscape.co.nz/blog/index.php/2009/03/01/getting-started-with-inheritance-in-lightspeed/ http://www.mindscape.co.nz/blog/index.php/2008/11/03/inheritance-in-lightspeed/
|
|