Closed mikemix closed 3 years ago
Docker php:7.3-apache
php:7.3-apache
Sonata 3.76
When adding a column to a non existing value:
->add('type', null, [ 'label' => 'Type', 'template' => '@SonataAdmin/CRUD/Cms/list_article_type.html.twig', ])
I get:
User Deprecated: Accessing a non existing value is deprecated since sonata-project/admin-bundle 3.67 and will throw an exception in 4.0.
How to do this properly? All I want is to add a custom column to the list.
You need to define a getter for it in Entity.
Sorry, but we try to keep github issues for feature requests and bugs only.
And @napestershine gave you the answer
Environment
Docker
php:7.3-apache
Sonata packages
Sonata 3.76
Subject
When adding a column to a non existing value:
I get:
How to do this properly? All I want is to add a custom column to the list.