Questions tagged [symfony6]

Use this tag for questions addressing particular features of the PHP framework Symfony in version 6. Otherwise use only the general [symfony] tag plus the language tag [php].

Symfony is a framework for web and CLI-applications built on top of a catalog of Symfony components. It is free software released under the MIT license. The project's homepage is symfony.com.

Symfony 6 was released in November 2021 and includes several changes compared to its predecessor. However there are no new features compared to version 5.4.

429 questions
-1
votes
1 answer

Contact Form Symfony 6 , Error "Expected response code "250", with message "550-Your FROM address"

i have a form that works on the local server without errors, i have implemented it on Hostinger, i have connected the smtp but i get a** 500 error** when i send the form. I don't understand this error, why is this? I am grateful for any help you can…
Juani08224
  • 41
  • 7
-1
votes
1 answer

How to make left join in dql Symfony

I would like to understand dql logic and i would like to create this kind of request. Bellow this is the SQL request i would like to do : SELECT titlemission,descriptionmission,onsetdate,deadline,budgetmission,prioritymission,company FROM…
Layer8
  • 1
  • 3
-1
votes
2 answers

Mapping entity null value Symfony

This is my issue : enter image description here I would like to fill iduser object with user entity. For the moment i can retreive the id of the user but others fields are empty. I suppose that my mapping is not correct but i don't found the…
Layer8
  • 1
  • 3
-1
votes
1 answer

My edit (CRUD) function remove some DATA when I use it

i've a problem with symfony project, in my Controller Company when I use edit function to modif some DATA with embedded form, symfony keep only 1 customer (first one) and what I was change and remove all other DATA. I not understand why symfony do…
-1
votes
1 answer

Typed property App\Entity\XXXX ::$users must not be accessed before initialization

I encounter the following problem when try to run my fixtures with Symfony 6 and php 8.1: Typed property App\Entity\XXXX ::$users must not be accessed before initialization Here is my fixture file which uses the user :
-1
votes
2 answers

how to add favicon with symfony 6

Good morning to you all, I'd like to ask you for help because I don't understand where my problem with adding a favicon with Symfony 6 comes from. I have two codes in mind, this one
Conrad
  • 23
  • 6
-1
votes
2 answers

symfony 6 unable to install hwi/oauth-bundle

I was wondering if anyone has had issues trying to install this with symfony 6. I have a feeling i'm missing something easy, but not sure what. I am trying to integrate a keycloak user solution and from what i was reading this would be a good way to…
Rob
  • 153
  • 1
  • 3
  • 14
-1
votes
2 answers

I can not create a class instance from a string in Symfony

What I wanted to is to create class instance from string in Symfony framework to use Doctrine Repository. Here is my code block: $type = "SomeClassName"; $productType =…
Onur
  • 414
  • 1
  • 11
  • 31
-1
votes
1 answer

Symfony\Bridge\Twig\Extension\RoutingExtension::getPath()

I'm new with symfony and I'm trying to create a delete button for the posted comments in my ArticleController. I created my twig form which looks like this :
Enzo
  • 1
  • 1
-1
votes
2 answers

Symfony6 - add iput field after submitting form

i have an ChoiceType::class input field in my form with, now just as an example, two choices: 'choices' => ['type1' => '1', 'type2' => '2'] now when the user select type2 i want to add an exta TextType::class inputfield to the form. But i dont want…
cube4d
  • 3
  • 2
-1
votes
3 answers

Symfony Console command that runs doctrine function

I want to create console command that download REST API data to database. Now I'm using fixtures to insert it into database and i don't know how to create command that is gonna run that kind of function. Can You give me some advance how to create…
MatZyn
  • 17
  • 3
-1
votes
3 answers

JWT Symfony 6 Can't get a way to read the property "username" in class "App\Entity\User"

When I implement JWT have a error: My security.yml: security: # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords password_hashers: …
-1
votes
2 answers

Symfony rest api error with security.yaml

I'm trying to add an auth system with JWT to my REST API but since I added my system and modified my security.yaml I have those errors:
-1
votes
1 answer

How to override a vendor Process class?

I'm trying to understand how to override a __construct in Process class. By default, construct only accepts an array as first parameter: public function __construct(array $command, string $cwd = null, array $env = null, mixed $input = null, ?float…
w0lfie.
  • 9
  • 2
-1
votes
1 answer

Symfony 6 and PhpStorm, methods in the extended class are not recognized

I use PhpStorm 2019.2 , it works good with Symfony 4 but with Symfony 6 and PHP 8.12 I get some errors like this: and also the methods in the extended class are not recognized, such as render(), createForm() etc. I've tried Invalidate Caches and…
hous
  • 2,577
  • 2
  • 27
  • 66
1 2 3
28
29