From 34f8fff01c181b995d1fc24468a9083f6c92f4fa Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 8 Jan 2020 16:38:11 +0100 Subject: [PATCH] Fetch() ignore row when sub-class does not exist --- core/dbobjectset.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/dbobjectset.class.php b/core/dbobjectset.class.php index 300b0ae45..fec4798c7 100644 --- a/core/dbobjectset.class.php +++ b/core/dbobjectset.class.php @@ -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; }