Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display comma separated value in Easy Admin bundle Symfony

Where categories is multiple category collection?

fields:
 - { property: 'categories' }

I have try many type but still i am not able to display comma separated value, By default it is displaying number of items in array collection

thanks for help !

like image 610
MAYUR NADIYA Avatar asked Feb 05 '23 00:02

MAYUR NADIYA


1 Answers

You should change your code as per below to display comma separated value in easy admin:

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

If you will not add property type: 'array', then easy admin will display total number of items in array or array collection.

like image 150
Maulik Savaliya Avatar answered Feb 08 '23 17:02

Maulik Savaliya