Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
145 views

Invalid mapping file BaseMedia.mongodb.xml

I have installed Sonata Media Bundle ^3.23, when installing doctrine-mongodb-bundle ^4.1, i receive the below error: In MappingException.php line 236 The mapping file vendor/sonata-project/media-...
TOMBO MAMONJY Slvano's user avatar
0 votes
1 answer
482 views

How to save pdf files with Sonata Media Bundle

I tried to save my pdf files into the file system of sonata media bundle and insert the correct database entry. I created my file with dompdf as following: $dompdf = new Dompdf($pdfOptions); $html = ...
Daniel Richter's user avatar
2 votes
1 answer
680 views

Access Denied for view and download routes in SonataMediaBundle and Symfony 4

I use Symfony 4 (more precise 4.1) with SonataAdminBundle and SonataMediaBundle. This is my config/routes/sonata_media.yaml: sonata_media_gallery: resource: '@SonataMediaBundle/Resources/config/...
cezar's user avatar
  • 12k
1 vote
1 answer
759 views

Sonata Media Bundle - How to get Image or Gallery by Id

Is it possible to get an image or gallery from Sonata Media Bundle by Id? I know how to get an image or gallery which is related to an entity. But in this case I just want to get an image or gallery ...
borschtel1's user avatar
0 votes
1 answer
1k views

Sonata Media Bundle Template in Symfony 4

I have installed Sonata Media Bundle in Symfony 4 and all is correct, but something is different respect t Symfony 3. I can't see the service in Sonata Admin and when I add the sonata media bundle ...
Amado's user avatar
  • 11
2 votes
2 answers
2k views

Symfony 4 Sonata Media Bundle Installation

I have a few errors during installation of Sonata Media Bundle on Symfony 4 application which had no place with Symfony 2.8. The first error: sensio/generator-bundle v3.1.6 requires symfony/...
Pavel Alazankin's user avatar