I am creating backend using Symfony. I want to create submenu. I am writing following code in easy_admin file inside config/packages:
easy_admin:
design:
menu:
- label: 'Products'
icon: 'shopping-basket'
children:
- { entity: 'Product', icon: 'th-list', label: 'List Products' }
- { entity: 'Product', label: 'Add Product' }
- { label: 'Additional Items' }
- { entity: 'User', label: 'Users' }
I have created entities of Product
and User
located in src/Entity
But I am getting error:
The "Product" entity included in the "menu" option is not managed by EasyAdmin. The menu can only include any of these entities: .
What I am doing wrong? Thank you in advance!