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