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

SVN:2.3[4637]
This commit is contained in:
Romain Quetiez
2017-03-30 19:26:02 +00:00
parent 60fa0e08f0
commit 0b4597e65e

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;
}
}