Category: sonata

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…