Category : sonata

I’ve installed sonata + symfony 4.4 on new clean empty project. Did everything according to https://symfony.com/doc/current/bundles/SonataAdminBundle/getting_started/installation.html and executed the recipes , composer adviced me to apply. But on pristine setup I’m having a few deprecations like: User Deprecated: The "sonata.twig.deprecated_template_extension" service is deprecated since sonata-project/twig-extensions 1.4. User Deprecated: The "sonata.deprecated_text.twig.extension" service is deprecated since sonata-project/admin-bundle ..

Read more

I got this error in Sonata Media bundle with symfony 4. Argument 3 passed to SonataMediaBundleCommandCleanMediaCommand::__construct() must be an instance of SonataMediaBundleModelMediaManagerInterface, instance of SonataMediaBundleDocumentMediaManager given This is the symfony and sonata media version: symfony/symfony v4.4.16 sonata-project/doctrine-extensions 1.10.1 sonata-project/form-extensions 1.7.0 sonata-project/intl-bundle 2.9.0 sonata-project/media-bundle dev-master c897263 sonata-project/twig-extensions 1.4.1 Source: Symfony..

Read more

I try edit record in Symfony 2.8 in Sonata panel. I can edit text record but I cannot edit a new file on record. When I try to insert data, I have not any problem. I can upload the image to storage and save in database. config.yml db_driver: propel_ge mappings: category_photos: uri_prefix: /category-photos upload_destination: %kernel.root_dir%/../data/category-photos ..

Read more

I’m using the ChoiceFieldMaskType from Sonata. I want to display some fields when one field true. Here’s what I’ve done: ->add(‘hasArtist’, ChoiceFieldMaskType::class, [ ‘label’ => ‘Mettre un artiste sur l’article?’, ‘choices’ => [ ‘Oui’ => ‘true’, ‘Non’ => ‘false’, ], ‘map’ => [ ‘true’ => [‘artistName’, ‘artistText’,’artistLink’,’artistImage’], ], ‘required’ => true ]) ->add(‘artistName’, TextType::class, [‘required’ ..

Read more