Category: sonata-admin

How to delete collection type null entries from Database in symfony 4 with sonata admin

I want to delete collection entry from database. When I will delete any collection from sonata admin collection then I want to that row deleted from database. But I don’t know that. So I need to know that. How can…

Delete collection null value entries from Database in sonata admin with symfony 4 [closed]

I want to delete collection entry from database. When I will delete any collection from sonata admin collection then I want to that row deleted from database. But I don’t know that. So I need to know that. Please help…

Access denied, the user is not fully authenticated; sonata admin on production mode

I keep getting logged out from sonata admin on the editing page of some specific objects. it works fine with ROLE_ADMIN but has a problem with my custom defined role. I had this in config.yml: session: # handler_id set to…

Sonata Media Bundle – INVALID MODE

I am using Sonata Admin Bundle and Sonata Media Bundle. I use those versions. Symfony Version is 4.4.3 sonata-project/admin-bundle 3.58.0 The missing Symfony Admin Generator sonata-project/block-bundle 3.18.3 Symfony SonataBlockBundle sonata-project/cache 2.0.1 Cache library sonata-project/core-bundle 3.17.2 Symfony SonataCoreBundle (abandoned) sonata-project/datagrid-bundle 2.5.0…

Hide Sonata Media Admin from dashboard

I want to remove sonatamediaadmin from dashboard. I am using Compiler pass https://symfony.com/doc/4.4/service_container/compiler_passes.html Now I added the src/Kernel.php process function (of course with class Kernel extends BaseKernel implements CompilerPassInterface) public function process(ContainerBuilder $container) { // in this method you can…

Symfony 4 + Sonata Admin – No metadata found for property in inherited property

I’ve got an error for some time now when I try to add filters to an Admin. There are two entities: Client and Order. In the OrderAdmin file, the following filters work: $datagridMapper ->add(‘id’) ->add(‘client.email’) ->add(‘client.id’) ; But if I…

How to secure admin specific area to specific role using SonataAdmin

I have a working SonataAdminBundle installation, meanings my admin is well secured and cannot be accessed by simple users. – { path: ^/admin/, role: [ROLE_ADMIN, ROLE_SONATA_ADMIN] } I have created some admin sections in the backoffice. But, I don’t want…