Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
7.3.7 CE GA8, 7.4.0 CE GA1
-
None
-
None
Description
If one declares a mapping-table as one of the tables declared as entities, service builder will create all elements correctly: model hints, indexes, tables.
However, although it creates model hints and services correctly, the table in tables.sql is always overwritten with one that only has the primary keys, regardless of the columns described in the entity.
To reproduce:
- Declare 2 entities, with a mapping-table specified.
- Declare an entity as the mapping table, adding the primary keys of the 2 entities and a companyId with an extra column.
Expected:
All elements should be created with the extra column in the mapping table: hints, table, services...
Observed:
All elements are created as expected, except for tables.sql, which skips the extra column.