Deselecting a category does not remove the row from refCategories
Description
Deselecting/unassign a category does not remove the row from refCategories.
When adding and removing same category multiple times (need to save between select and deselect) e.g. for dmNews leads to this error: [Macromedia][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY constraint 'PK_refCateg_407F3C137C655074'. Cannot insert duplicate key in object 'dbo.refCategories'.
It is possible that this only occurs on types that extends farcry.core.types.versions like dmNews.
Deselecting/unassign a category does not remove the row from refCategories.
When adding and removing same category multiple times (need to save between select and deselect) e.g. for dmNews leads to this error:
[Macromedia][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY constraint 'PK_refCateg_407F3C137C655074'. Cannot insert duplicate key in object 'dbo.refCategories'.
It is possible that this only occurs on types that extends farcry.core.types.versions like dmNews.