mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
✅ Runtime Model Reflection & namespace
This commit is contained in:
@@ -145,8 +145,7 @@ class ModelReflectionRuntime extends ModelReflection
|
||||
}
|
||||
$aAttributes = [];
|
||||
foreach (MetaModel::ListAttributeDefs($sClass) as $sAttCode => $oAttDef) {
|
||||
$oReflection = new ReflectionClass($oAttDef);
|
||||
$sAttributeClass = $oReflection->getShortName();
|
||||
$sAttributeClass = get_class($oAttDef);
|
||||
if ($aScope != null) {
|
||||
foreach ($aScope as $sScopeClass) {
|
||||
if (($sAttributeClass == $sScopeClass) || is_subclass_of($sAttributeClass, $sScopeClass)) {
|
||||
|
||||
Reference in New Issue
Block a user