[-] Core : Fix #PSCFV-5194 object instead of object name stored in class definition
This commit is contained in:
@@ -1414,7 +1414,12 @@ abstract class ObjectModelCore
|
|||||||
{
|
{
|
||||||
$reflection = new ReflectionClass($class);
|
$reflection = new ReflectionClass($class);
|
||||||
$definition = $reflection->getStaticPropertyValue('definition');
|
$definition = $reflection->getStaticPropertyValue('definition');
|
||||||
$definition['classname'] = $class;
|
|
||||||
|
if (is_object($class))
|
||||||
|
$definition['classname'] = get_class($class);
|
||||||
|
else
|
||||||
|
$definition['classname'] = $class;
|
||||||
|
|
||||||
if (!empty($definition['multilang']))
|
if (!empty($definition['multilang']))
|
||||||
$definition['associations'][Collection::LANG_ALIAS] = array(
|
$definition['associations'][Collection::LANG_ALIAS] = array(
|
||||||
'type' => self::HAS_MANY,
|
'type' => self::HAS_MANY,
|
||||||
|
|||||||
Reference in New Issue
Block a user