mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-06 07:24:44 +01:00
passing properties to recursive call if properties of top object are not specified
fixes #7717 close #10960
This commit is contained in:
committed by
Carsten Brandt
parent
627233715b
commit
c6d04644d3
@@ -93,7 +93,7 @@ class BaseArrayHelper
|
||||
}
|
||||
}
|
||||
|
||||
return $recursive ? static::toArray($result) : $result;
|
||||
return $recursive ? static::toArray($result, $properties) : $result;
|
||||
} else {
|
||||
return [$object];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user