Details
Description
I am using CayenneModeler 4.1, Aug 23 build. Scenario:
- Initial state: A model with a many-to-many join table (mapped itself as an ObjEntity). Join table has formal FKs and a compound PK, made from those FKs.
- I make change in the DB, adding a separate PK column. FKs remain, but they are no longer part of the pk
- Run dbimport
- Click "Save". Modeler shows validation for relationships to the join table, saying that "to-dep PK" is checked for columns that are not pks. I can't uncheck it in the modeler, as "to-dep PK" checkboxes are disabled. But saving seems to be done correctly (to-dep PK is unset)
- Reopening the project clears validation errors.
We need to make sure that "to Dep PK" state is properly synchronized in the model and in the Modeler on such a delta during dbimport.