Fetch() ignore row when sub-class does not exist

This commit is contained in:
Eric
2020-01-08 16:38:11 +01:00
parent 8d45e48ce1
commit 34f8fff01c

View File

@@ -980,7 +980,15 @@ class DBObjectSet implements iDBObjectSetIterator
}
else
{
$oRetObj = MetaModel::GetObjectByRow($sClass, $aRow, $sClassAlias, $this->m_aAttToLoad, $this->m_aExtendedDataSpec);
try
{
$oRetObj = MetaModel::GetObjectByRow($sClass, $aRow, $sClassAlias, $this->m_aAttToLoad, $this->m_aExtendedDataSpec);
}
catch (CoreException $e)
{
$this->m_iCurrRow++;
$oRetObj = $this->Fetch($sRequestedClassAlias);
}
}
break;
}