fsi-open / datasource-bundle

Main purpose of this bundle is to register FSi DataSource Component service and twig datasource rendering functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process of merging datasource configuration from all bundles is useless

chives opened this issue · comments

All data read from several .yml files is merged using simple array_merge so only the first level of array keys are merged. In case of datasource configuration it means that all fields from previous files will be overwritten by subsequent ones, because they exists under the key 'fields' at the root of .yml file. One possible solution is to use array_merge_recursive but keep in mind that values from numeric keys will be appended to those defined in previous files.