src/Graviton/DocumentBundle/DependencyInjection/Compiler/Utils/DocumentMap.php
private function getDoctrineFields(array $mapping)
    {
        if (!isset($mapping['fields'])) {
            return [];
        }

        return array_map(
            function ($key, $value) {
                if (!isset($value['type'])) {
                    $value['type'] = '';
                }

                return [
                    'name' => $key,
                    'type' => $value['type']
                ];
            },
            array_keys($mapping['fields']),
            $mapping['fields']
        );
    }
private function getDoctrineFields(array $mapping)
    {
        if (!isset($mapping['fields'])) {
            return [];
        }

        return array_map(
            function ($key, $value) {
                if (!isset($value['type'])) {
                    $value['type'] = '';
                }

                return [
                    'name' => $key,
                    'type' => $value['type']
                ];
            },
            array_keys($mapping['fields']),
            $mapping['fields']
        );
    }
private function getDoctrineFields ( array $ mapping ) { if ( ! isset ( $ mapping [ 'fields' ] ) ) { return [ ] ; } return array_map ( function ( $ key , $ value ) { if ( ! isset ( $ value [ 'type' ] ) ) { $ value [ 'type' ] = '' ; } return [ 'name' => $ key , 'type' => $ value [ 'type' ] ] ; } , array_keys ( $ mapping [ 'fields' ] ) , $ mapping [ 'fields' ] ) ; }
Get doctrine document fields

@param array $mapping Doctrine mapping
@return array
Get doctrine document fields