Category "symfony"

Sonata Admin 4: Add an additional display to edit form

It appears to be possible to simply put a string / template to the list view, but is the same possible to the edit view of an entity in Sontata Admin 4? I found

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

I use the last version of EasyAdmin and my add and remove functions are ignored when I submit the form: Ambiance entity: /** * @ORM\OneToMany(targetEntity="Veh

Set @JoinColumn name in doctrine

EDIT: In the end as @Jakumi commented it was just a cache issue, after clearing it everything worked as expected. There are only two hard things in Computer Sc

DateTime being persisted to one DB column but not the other in Symfony 4.4 app

I have a baffling issues where I have a DateTime object which seems to be able to be persisted and flushed to one column, but not the other. I have checked the

Malformed MIME header error in Symfony 5.3

I'm working on a project with Symfony 5.3 with PHP 8.0.12. I've been developing it on my own computer, it's working well. I now want to deploy it on a remote co

Doctrine simple_array returns one empty element instead of empty array

I noticed that an entity field of type simple_array does not return the correct value for empty string. Entity: namespace MyBundle\Entity; use Doctrine\ORM\Map

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

I am just starting my journey with servers so I bought one VPN. I installed there ubuntu 18, apache 2.4, php8, webmin, mysql etc. I have two sites based on symf

API Platform / React - uploading file not working

I'm trying to send an image to my API with React using a formData and Axios but my request in my custom controller shows null. When I use PostMan my api accepts

Almost empty symfony install ( missing vendors except for flex )

symfony new my-project is supposed to install a basic working symfony app but it gives me a project that's almost empty, with only composer.json, composer.lock

Sulu 2.0: How to add custom css and js to the admin view

Is it possible to add a custom css and a custom js file to the sulu admin? I saw, that it is a single page application rendered by vendor/sulu/sulu/src/Sulu/Bun

How to avoid duplicating workers with Symfony local server?

I found out that I have quite many Symfony local web server workers registered (around ~35), and the number keeps growing. I usually just start server with symf

aws eb deploy doesn't load environment variables

I'm deploying symfony project via eb deploy to ec2 instance (aws linux 2). Post deploy migrations scripts works well, but then I try to run symfony command with

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

I am integrating VichUploaderBundle, and I've successfully been able to submit a file and save it, download it and edit the form resubmiting another file and re

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

I keep getting this problem everytime i try to migrate using the commandline: php bin/console make:migration or even doctrine:migration status when i try the do

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

Quick Overview Hey guys! I'm working on an app that has the ability for an Order to contain multiple OrderStatus which then have a relationship with the Status

Cannot autowire service in symfony

I'm trying to split one big service.yaml to few smaller files. In origin service.yaml I had services: _defaults: autowire: true autoconfigure: true

Generate admin Sonata with command line in Symfony 4

I'm starting to use Sonata with Symfony 4. I try to generate an admin with the command line "make:sonata:admin" and i've an error at the end of the process like

Symfony 5.2 mock service disappear in second request

I used Symfony 5.2 and I need to mock service method which execute send request to stripe payment system, obviously don't need to execute it when tests executin

Symfony 5.2 mock service disappear in second request

I used Symfony 5.2 and I need to mock service method which execute send request to stripe payment system, obviously don't need to execute it when tests executin

Symfony Error: "An exception has been thrown during the rendering of a template"

I am trying to include <link href="{{ asset('css/mystyle.css') }}" rel="stylesheet"/> in my twig file and render it. But it gives me Uncaught P