SpineInterface
can create duplicate Object
s that causes some confusion.
#81
Labels
bug
Something isn't working
Essentially, it seems that the
Object
constructor creates a duplicateObject
, that fools some of the code into thinking that theObject
is the same as one already in the database, while other functionality recognises that there's a difference. For example, when loading a database into memory with abuilding_archetype
ObjectClass
with anObject
calledIDA_ESBO_AB
:but
Furthermore, if comparing the fields of the
Object
s:and
where
I believe that
spinedb_api
doesn't allow duplicate objects inside the same object class, so we should probably fix theObject
constructor so that it either throws an error when trying to create a duplicate object, or refers to the pre-existing object instead.The text was updated successfully, but these errors were encountered: