#2805 Further fixes for aggregates of select

This commit is contained in:
Thomas Krijnen
2023-06-22 10:29:41 +02:00
parent 65cb47e2d8
commit 1c996013b6
2 changed files with 4 additions and 5 deletions
@@ -224,9 +224,9 @@ class Mapping:
isinstance(v, nodes.SimpleType) and isinstance(v.type, nodes.StringType)
):
return "string"
if self.schema.is_select(v):
return "IfcUtil::IfcBaseClass"
elif str(v) in self.schema.types or str(v) in self.schema.entities:
# if self.schema.is_select(v):
# return "IfcUtil::IfcBaseClass"
if str(v) in self.schema.types or str(v) in self.schema.entities:
return "::%s::%s" % (self.schema.name.capitalize(), v)
else:
return str(v)