Allow processing of null mappings in configuration
This commit is contained in:
parent
b12b92845c
commit
904a664dfe
1 changed files with 6 additions and 1 deletions
|
|
@ -369,9 +369,14 @@ class Configuration
|
|||
* @param array $mappings The mappings for the current type
|
||||
* @return array The nested mappings defined for this type
|
||||
*/
|
||||
protected function getNestingsForType($mappings)
|
||||
protected function getNestingsForType(array $mappings = null)
|
||||
{
|
||||
if ($mappings === null) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$nestings = array();
|
||||
|
||||
foreach ($mappings as $field) {
|
||||
if (isset($field['fields'])) {
|
||||
$this->addPropertyNesting($field, $nestings, 'fields');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue