I am building a very simple billing system for a media company using Sonata that includes Payment entities for paying Reporters. The only purpose of a Payment is to be exported to a spreadsheet. We will never edit Payments directly. I have a bunch of special getters in my Payment entity that don’t correspond directly ..
I want to use one Sonata Admin Panel for two projects. I created entity Projects and bound to it all the content. One Project to Many (other entities). Now all the content belongs to project with id 1. And I created another project with id 2 and I want the admins of project 2 not ..
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 ..
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..
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 ..
As I wrote in topic. How can I make list view from raw query? Can I make entity which will simulate my query? I tried use doctrine https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/native-sql.html but it dosn’t worked Source: Symfony..
I want to be able to manage the entire menu tree of my website from Sonata Admin Panel. The menu will have a maximum of three levels. I’ve created the Menu Entity and the Menu Admin (code below), but upon clicking on "Add new" button from children field (image below) no children form is loaded ..
I’m fairly new to Symfony and Sonata, so any advice would be great. I’m trying to add a little help message that shows how many characters have been typed in Sonata Admin. I tried to do this all on the front end first through JS, but since the value is coming from the backend, I ..
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’ ..
I’m trying to use enum to show specific options in one of the fields in my form. The form is using sonata admin. in older versions of sonata I used to use ‘choice_by_value’. I can’t find a substitute that in symfony 4.4 the functions in my class are the following: const TYPE_ADMIN = "ROLE_ADMIN"; const ..