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
|
I've run into a pluralization issue when working with through associations in my model. I'm running the nightly build of 4.0 from 2011/06/10. I've created two entities, Series and Chassis. Each also has two entity properties, but I'm not seeing any problems with that.
Series has these non-default properties: Identity Column Name: Id Name: Series
Chassis has these non-default properties: Identity Column Name: Id Name: Chassis Plural Name: Chassis Table Name: Chassis
I then created a through association between the two using the following settings: Auto Through Entity: SeriesChassis Source Collection Name: Chassis Target Collection Name: Chassis
When I click Update Database Lightspeed tries to create a table named "SeriesChasses" to handle the through association. It looks like Lightspeed isn't picking up the pluralized table name for Chassis when creating the through association and I can't seem to find a way to override that table name to "SeriesChassis" without making my own through entity. Is there a way to manually override this? Thanks! |
|
|
No, you would need to create an explicit through entity in order to override the default pluralisation. We'll add a special case for 'chassis' in a future build -- thanks for letting us know about it! |
|
|
Thanks. Will do. Any chance future builds will allow user-overridable pluralizations? |
|
|
Not for auto through entities. Auto through entities are a convenience for the simplest cases: when customisation is required, explicit through entities will remain the way to go. |
|