N.799 Setup failing (during database creation) with MetaEnum attribute having no mapping for the class they are declared in.

SVN:trunk[4636]
This commit is contained in:
Romain Quetiez
2017-03-30 19:23:43 +00:00
parent 3644553886
commit 772954711a

View File

@@ -3586,8 +3586,16 @@ class AttributeMetaEnum extends AttributeEnum
else
{
$sParent = MetaModel::GetParentClass($sClass);
$aMappingData = $this->GetMapRule($sParent);
if (is_null($sParent))
{
$aMappingData = null;
}
else
{
$aMappingData = $this->GetMapRule($sParent);
}
}
return $aMappingData;
}
}