Category "symfony"

How can I stop a symfony process which is listening on http://127.0.0.1:8000

I am trying to run a basic Symfony installation which I generated using this command : $ symfony new basic When I run the following commands : $ cd basic $

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'id_utilisateur_id' cannot be null

I am a computer science student. And I have a problem while creating an API. Here is my controller allowing the addition of a "Personnage". (POST) #[Route('/api

Symfony Error: You have requested a non-existent parameter "file_path" [closed]

This is my stack trash, I am getting this when doing the existing Symfony project. stack trash : Symfony\Component\DependencyInjection\E

Postgresql/Docker - password authentication failed for user "user"

I have set database with postgresql and docker, now when I want to access to my database I have this connection error saying password authentication failed for

Console/Symfony Call command from controller

I have some issues with Console when I try to call a Command from a Controller. I found a way in the Symfony CookBook : http://symfony.com/doc/current/cookbook/

Attempted to call an undefined method named "get" of class "MailController"

I want to sent an email with swiftmailer this is my function in my mailController.php public function newMail(Mail $mail){ $message = \Swift_Message::n

Symfony 5 : Authentication failed in prod env

I have an application that I'm trying to upload to my FTP server. I've run : symfony console make:user and also symfony console make:auth So while running the s

Symfony/Form add attribute based on the data

In one of my custom form types I need to add a custom HTML attribute to the field. However that attribute is based on the data. So I added an event handler but

ConstraintViolationListInterface to Exception in Symfony

I need to convert an object of type ConstraintViolationListInterface to a single exception for further logging, where the message is a concatenation of the mess

ConstraintViolationListInterface to Exception in Symfony

I need to convert an object of type ConstraintViolationListInterface to a single exception for further logging, where the message is a concatenation of the mess

How to properly set "0000-00-00 00:00:00" as a DateTime in PHP

I have a column viewedAt which is a DATETIME and accept NULL values. It's a software restriction to set that column on each new record as 0000-00-00 00:00:00 so

Allow the addition of new values to a ChoiceType Field

I use Form Component and have a ChoiceType field on the form which is rendered to a select field. On the client-side I use select2 plugin which initializes a se

Symfony 4: how to safely 'join' migrations together? / remove migrations in between the first and last?

I was recently tweaking around with my DB and noticed that I made 5 migrations on top of my existing 2. So 7 in total, m1, m2, ..., m7. From these 5, I only wan

Add a header when sending a message with php-enqueue and RabbitMQ

I am trying to send a header using php-enqueue bundle I'm trying this: public function __construct( ProducerInterface $producer ) { parent::__constru

Failed user login on production server using Symfony framework (Authentication request could not be processed due to...)

I'm using Symfony for a project and I have been trying to get the login to work on production server with no success for the past 2 days. I keep getting the err

How to install a custom certificate in Symfony server?

With server:ca:install on the Symfony console an SSL certificate can be generated and installed. Is it possible / How to install an existing one, created separa

How to get all possible values for an existing ENUM or SET - field

I'm using Doctrine in Symfony4. How do I retrieve all possible values for an ENUM or SET column on this base?

Looking for a clean way to export data to a CSV that is previously used in a different controller route that renders a Form/DB query

I have a page that has a form that generates a query that renders relevant information from my database: Render Example The controller function I use creates th

Doctrine 2 Symfony 5 migration to an oracle database

I have PHP 8.0 Ubuntu 20.4 running in a VM Symfony Version 5 doctrine/orm 2.8.2 doctrine/dbal 2.12.1 doctrine/migrations 3.1.1 and oracle19c running I have als

upload image from react native app to symfony backend via axios

I want to upload an image from react native app to backend in symfony via axios. here is the code of the front end : const [pickedImage, setPickedImage] = u