Category: sonata

why does SonataAdminTreeBundle not show the navbar for filters and viewmodes?

we work on a projekt with symfony 4 and sonata. we are using the SonataAdminTreeBundle to manage our Categories. basically everything works fine – but the menu from sonata were the datagrid filters are located (aka nabvbar) is not showing…

sonata group role by entity category in sonata admin without ACL in symfony 4

Here is my code. ->add(‘name’) ->add(‘roles’, SecurityRolesType::class, [ ‘expanded’ => true, ‘multiple’ => true, ‘required’ => false, ]) This is my present roles view. click here But I want to look like. click here or click here Now how can…

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…

How to link to download or preview pdf in sonata admin list

I have an Entity, with the next fields: /** * @ORMColumn(type=”string”, length=255) * @var string */ private $document; /** * @AssertFile( * maxSize=”2M”, * mimeTypes={“application/pdf”,”application/msword”}, * mimeTypesMessage = “Please upload a PDF or MSWORD file” * ) * @VichUploadableField(mapping=”resume_doc”, fileNameProperty=”document”)…

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…