Fix undefined property error

This commit is contained in:
Thibaud Fabre
2016-10-27 15:42:26 +02:00
parent 59befbfecc
commit 2ae21532bc
2 changed files with 1 additions and 5 deletions

View File

@@ -76,10 +76,6 @@ class ComplexMapping extends FieldMapping
$properties[$name] = $child->toArray();
}
if ($this->childKey) {
return [$this->childKey => $properties];
}
return $properties;
}
}

View File

@@ -24,7 +24,7 @@ class ComplexPropertiesMapping extends ComplexMapping
/**
* @return array
*/
public function toArray()
public function getProperties()
{
return [ 'properties' => parent::getProperties() ];
}