Relax requirement for DCEs of collections that are not populated

This commit is contained in:
mvdbeek
2024-04-21 22:51:00 +02:00
parent 1b1094be21
commit e3aba2d2b0
+2 -1
View File
@@ -7146,7 +7146,8 @@ class DatasetCollectionElement(Base, Dictifiable, Serializable):
self.element_identifier = element_identifier or str(element_index)
def __strict_check_before_flush__(self):
assert self.element_object, "Dataset Collection Element without child entity detected, this is not valid"
if self.collection.populated_optimized:
assert self.element_object, "Dataset Collection Element without child entity detected, this is not valid"
@property
def element_type(self):