mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
Fix undefined property error
This commit is contained in:
@@ -76,10 +76,6 @@ class ComplexMapping extends FieldMapping
|
|||||||
$properties[$name] = $child->toArray();
|
$properties[$name] = $child->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->childKey) {
|
|
||||||
return [$this->childKey => $properties];
|
|
||||||
}
|
|
||||||
|
|
||||||
return $properties;
|
return $properties;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,7 @@ class ComplexPropertiesMapping extends ComplexMapping
|
|||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function toArray()
|
public function getProperties()
|
||||||
{
|
{
|
||||||
return [ 'properties' => parent::getProperties() ];
|
return [ 'properties' => parent::getProperties() ];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user