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
|
For single-table inheritance, does LightSpeed 4 have the ability to specifiy what to do if the discriminator value found in the database is not recognised? E.g. I can tell it that if discriminator is "Foo" that maps to subclass Foo, and if discriminator is "Bar" that maps to subclass Bar. But can I also tell it that if the discriminator is something unexpected (e.g. "Wombat") it should map all such unexpected things to the base class in the heirarchy? |
|
|
Hi John, LightSpeed will materialize the base class when there is no specific subclass which matches the discriminator so you dont need to explicitly specify anything for this to occur.
|
|
|
Thanks. John |
|