Say we apply a scenario filter over a DB that excludes some of the entities (because of entity_alternative definitions).
Then we add some of the filtered entities via a DatabaseMapping. The DatabaseMapping won't complain that the entities already exist because for all practical effects they are invisible to it. Then we commit, and we find a UNIQUE key violation.
Say we apply a scenario filter over a DB that excludes some of the entities (because of entity_alternative definitions).
Then we add some of the filtered entities via a DatabaseMapping. The DatabaseMapping won't complain that the entities already exist because for all practical effects they are invisible to it. Then we commit, and we find a UNIQUE key violation.