Commit 7238fcef authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

fix: handle multiple heritage in domain

parent 77da3d86a799
Pipeline #96194 failed with stages
in 1 minute and 37 seconds
......@@ -173,8 +173,9 @@
for domain_fragment in domain_fragments:
# if the parent of the domain is already in domain_fragments
domain_parent = schema[domain_fragment].specializes()
if domain_parent is not None and domain_parent.type in domain_fragments:
domain_parents_str = schema[domain_fragment]._specialized_type or ""
domain_parents = domain_parents_str.split(", ")
if set(domain_parents).intersection(set(domain_fragments)):
continue
schema.add_relation_def(
RelationDefinition(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment