How to display comma separated value in Easy Admin Symfony package

Where categories are several collections of categories?

fields:
 - { property: 'categories' }

I tried many types, but still I can’t display the value separated by commas. By default it displays the number of elements in the array collection

thanks for the help!

+4
source share
1 answer

You must change your code as shown below to display the comma separated value in easy admin:

fields:
  { property: 'categories', type: 'array' }

If you do not add a property type: 'array', then a simple administrator will display the total number of elements in the array or array.

+5
source

Source: https://habr.com/ru/post/1671016/


All Articles