collection := self importEntities.
collection := anEntity itsCollections addAll: collection unless: self blockOnIdEquality
model addAll: collection unless: self blockOnIdEquality
The general idea is to first add the collection to an entity slot and then to the model. However when cross-analyses Github and Gitlab, two project entity with the same idea can be added to the same model. In this case, the model will add the first one but not the second since it's ID is already in it.
Thus to solve this issues, new collection must be added first to the receiveing entity with a specialy check on their id (using 'add:unless') and than be added to the model this time checking the mooseID.
collection := self importEntities.
collection := anEntity itsCollections addAll: collection unless: self blockOnIdEquality
model addAll: collection unless: self blockOnMooseIDEquality
The general idea is to first add the collection to an entity slot and then to the model. However when cross-analyses Github and Gitlab, two project entity with the same idea can be added to the same model. In this case, the model will add the first one but not the second since it's ID is already in it.
Thus to solve this issues, new collection must be added first to the receiveing entity with a specialy check on their id (using 'add:unless') and than be added to the model this time checking the mooseID.