Questions tagged [symfony-4.4]

Symfony is a PHP framework developed by SensioLabs. Symfony 4.4 was released in November 2019.

Symfony is a PHP web framework first released in July 2011 and was created by SensioLabs. Symfony 4.4 was released in November 2019.

Bug fixes

  • bug #34464 [Form] group constraints when calling the validator (@nicolas-grekas)
  • bug #34451 [DependencyInjection] Fix dumping multiple deprecated aliases (@shyim)
  • bug #34448 [Form] allow button names to start with uppercase letter (@xabbuh)
  • bug #34428 [Security] Fix best encoder not wired using migrat _from (@chalasr)

Documentation / Resources

  • Overview: Documentation for current version.
  • Flex: New way to manage Symfony apps.
  • Best Practices: Best practices for developing web apps, esp. the ones using the full-stack Symfony framework.
  • Symfony Recipes Server: Includes official and community recipes.
108 questions
1
vote
1 answer

Symfony4 doctrine unit tests: entity has old data in cache?

I am developing a Symfony4 App and want to test if a service really updates my database. Here I give in a data transfer object public function update(ChargeDto $chargeDto): ChargeDto { $charge = $this->chargeRepository->find($chargeDto->id); …
Calamity Jane
  • 2,189
  • 5
  • 36
  • 68
1
vote
3 answers

Why after upgrading to Symfony 4.4 I no longer get the error preview pages?

I've just updated a project from Symfony 4.3 to 4.4. After the update when I have an error the page shown is the production error page with the "Oops! An Error Occurred!", not the dev error page with all the trace of the error. Also the profiler…
David Rojo
  • 2,337
  • 1
  • 22
  • 44
1
vote
1 answer

Symfony 4 - Security - Share context from multiple firewalls to one another

I think I reached some limit with the Symfony security component. Here's my problem: I have two firewall to manage two users type (with two distinct entities) authentication and access to two different part of the website. I have a third part to…
1
vote
1 answer

How to change input "id" in FormType.php Symfony 4

I have tried to change the attr "id" in a FormType.php file : ->add('content', TextareaType::class,([ 'label' => "Description détaillée", 'attr' => [ 'placeholder' => "Donnez une description qui donne vraiment envoe de venir chez…
technico
  • 113
  • 8
1
vote
0 answers

Sysmfony 4.4 - Testing form with 'contraints' in options of TimeType generate an UndefinedOptionsException

I made a form in Symfony 4.4 with a TimeType field defined like this : $builder ->add('planned_start', TimeType::class, [ 'widget' => 'single_text', 'empty_data' => '', 'constraints' => [ new NotBlank([ …
Vincent
  • 384
  • 1
  • 3
  • 11
1
vote
1 answer

Testing Symfony Bundle : doctrine.orm.entity not found

I'm creating a standalone Symfony 4.4 bundle and I need to test it ! I've created an AppKernelTest which extends Kernel and I registered all my bundles : class ServicesBundleTestingKernel extends Kernel { /** * @inheritDoc */ …
hannibal
  • 11
  • 2
0
votes
0 answers

How to login and create JWT in symfony 4.4 in Ubuntu with detailed configuration?

I used lexik/jwt-authentication-bundle. security.yaml security: encoders: # an encoder used in the past for some users legacy: algorithm: sha256 encode_as_base64: false iterations: 1 …
0
votes
0 answers

Artgris FileManagerBundle change name of uploaded file

Im using Symfony 4.4 with Artgris FileManagerBundle Is there any possibility to change name of uploaded file? I try Event Listener with events "file_manager.pre_update", "file_manager.post_update" but no success. Nothing found in config but maybe…
Tadeusz Majkowski
  • 612
  • 2
  • 8
  • 26
0
votes
0 answers

How to debug the PDOException "There is already an active transaction"?

I have Symfony Messenger on Symfony 4.4. The handler works with a Microsoft SQL Server 2019 (RTM-CU2) (KB4536075) - 15.0.4013.40 (X64). The connection to this db is done with a php custom library that just wraps PDO using FreeTDS 7.1.…
nulll
  • 1,465
  • 1
  • 17
  • 28
0
votes
0 answers

Symfony Dependency Injection shows a weird behaviour

When i try to inject a service in my Symfony 4.4.25 Bundle (with Akeneo) i encounter a very strange behavior. Defining a mapped variable in the Bundle Config without having the variable in __construct() throws a fail. Adding the variable throws…
Tom Lorenz
  • 19
  • 2
0
votes
0 answers

Entity creation issue in the symfony 4.4

When, i am trying to make entity. then getting issue like In DoctrineHelper.php line 314: Warning: Invalid argument supplied for foreach() make:entity [-a|--api-resource] [-b|--broadcast] [--regenerate] [--overwrite] [-h|--help] [-q|--quiet]…
0
votes
0 answers

Symfony 4.4 checking logged in user from 2 firewalls

I am struggling with a seemingly simple issue around firewalls and user providers in Symfony 4.4. I am using 2 firewalls & user providers for different user groups. On my homepage, I want to spare logged in users the marketing page and redirect…
fso
  • 11
  • 2
0
votes
1 answer

Symfony 4.4 getResult hydrator slow - PHP 8.1

I updated my old Symfony 4.3 application to 4.4 and i moved the application on a new server with PHP8.1 and mySQL8. Before i used a Server with PHP7.4. I noticed now that my application is very slow on the new setup. Some routes are 1 second slower…
tablesuplex
  • 55
  • 1
  • 10
0
votes
0 answers

Error trying to send email with Symfony Mailer

How do you configure Symfony Mailer? I'm swapping Swiftmailer to Symfony Mailer because Swiftmailer is now deprecated. However, I haven't been able to send a single email with Symfony Mailer yet. Swiftmailer always works and the emails are caught by…
CJ Dennis
  • 4,226
  • 2
  • 40
  • 69
0
votes
1 answer

Command "make:entity" is not defined. Symfony 4.4

when I run php bin/console make:entity the output is [critical] Error thrown while running command ""make:entity"". Message: "Command "make:entity" is not defined. Did you mean one of…