mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
More informative message when class does not exist
This commit is contained in:
@@ -6690,6 +6690,10 @@ abstract class MetaModel
|
||||
else
|
||||
{
|
||||
// do the job for the real target class
|
||||
if (!class_exists($aRow[$sClassAlias."finalclass"]))
|
||||
{
|
||||
throw new CoreException("Class {$aRow[$sClassAlias."finalclass"]} derived from $sClass does not exist anymore, please remove corresponding tables in the database", array('row' => $aRow));
|
||||
}
|
||||
$sClass = $aRow[$sClassAlias."finalclass"];
|
||||
}
|
||||
return new $sClass($aRow, $sClassAlias, $aAttToLoad, $aExtendedDataSpec);
|
||||
|
||||
Reference in New Issue
Block a user