expand entity references during relationship compilation
This commit is contained in:
parent
53d7ac9569
commit
c973bb852d
@ -109,9 +109,11 @@ class YAMLLibraryParser (LibraryParser):
|
|||||||
self.manager.assign_relationship(instanceId, rel_iid, relinst_iid)
|
self.manager.assign_relationship(instanceId, rel_iid, relinst_iid)
|
||||||
else:
|
else:
|
||||||
if "globalIdentifier" in relationshipValue:
|
if "globalIdentifier" in relationshipValue:
|
||||||
globalIdentifier = Guid.parse(relationshipValue["globalIdentifier"])
|
globalIdentifier = Guid.parse(self.manager.expand_entity_references(relationshipValue["globalIdentifier"]))
|
||||||
|
print("** using Guid from globalIdentifier '" + relationshipValue["globalIdentifier"] + "' **")
|
||||||
else:
|
else:
|
||||||
globalIdentifier = Guid.create()
|
globalIdentifier = Guid.create()
|
||||||
|
print("** created new Guid **")
|
||||||
|
|
||||||
print("creating new instance for relationship '%s' with globalid '%s'" % (rel_iid, globalIdentifier))
|
print("creating new instance for relationship '%s' with globalid '%s'" % (rel_iid, globalIdentifier))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user