M
M
Messi2020-04-22 16:12:42
symfony
Messi, 2020-04-22 16:12:42

"Cannot convert object to primitive value" error in filter?

Hello! There is an Entity with an isEnabled field.
Symfony4 and EasyAdminBundle are installed, everything works well, but through the yaml configuration I decided to add filtering by the isEnabled field for list, as stated in the documentation , I did this:

# config/packages/easy_admin.yaml
easy_admin:
    entities:
        Users:
            class: App\Entity\MyEntity
            list:
                filters: ['isEnabled']



The filter is displayed, but when I click on it, I get an error in the console js app.js: 77 Uncaught TypeError: Cannot convert object to primitive value Tell me, please, how to solve or what is the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question