Category "symfony"

Docker "Invalid mount path app/symfony" must be absolute

Im trying to setup Webpack to run with docker. I'm looking to put it in its own container, build the files and then nginx will serve that produced code on its c

Symfony 5 mail not send - MailHog

When I try to send a local mail I do not get anything and yet I have no mistake. Normally I should receive the mail on Mailhog. I tested by sending an email wit

Why is webpack encore required only in dev

I'm currently configuring some docker images for a symfony 5 project and trying to deal with the production build. Doing so, I noticed that webpack encore is in

Why is webpack encore required only in dev

I'm currently configuring some docker images for a symfony 5 project and trying to deal with the production build. Doing so, I noticed that webpack encore is in

Error : The entity passed to the choice field must be managed

In a search form, when I submit for the second time the datas containing a equipment criterion, I receive this error : Entity of type "App\Entity\Equipment"

Lexik JWT authentication problem "Invalid credentials"

I am new to symfony and I am using LexikJWTAuthenticationBundle for authorization. I am using symfony 6.0.2 and 2.14 lexic version. I am using Postgresql 12.9.

Unable to read the "../.dev.env" environment file in Dotenv.php:symfony

I want To run a symfony project in my computer but I get all times errors , and now I get this error and i didn't find any solution for my problem Problem Fail

Doctrine2 DBAL Exists query

I would like to ask for your help with Doctrine2 DBAL query built with QueryBuilder. I'm used to ORM, but I think it's an overkill for such query which is being

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