Questions tagged [symfony-4.3]

Symfony is a PHP framework developed by SensioLabs. Symfony 4.3 was released in May 2019.

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

Bug fixes

  • bug #31654 [HttpFoundation] Do not set X-Accel-Redirect for paths outside of X-Accel-Mapping (@vilius-g)

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.
92 questions
0
votes
0 answers

How to automatically call a controller function in symfony 4

I am trying to automate a task. Which is sending emails automatically every week to some people. I created a MailController, inside it implemented a function which sends the emails. What i want to do now is to make my app call the function…
Tom.H
  • 11
  • 2
0
votes
1 answer

Connection to an oracle 11g database in symfony 4.3 project

I started a Symfony 4.3 project and I have to work with an Oracle 11g database for this project. However, the documentation of Symfony does not offer enough lucidity on the subject, especially the configuration to connect to an oracle database. It's…
0
votes
1 answer

Symfony PHPUnit tests issue

I have the following issue while running PHPUnit test cases in Symfony. I have tried removing various tests cases which could cause memory issues but no luck. is it something related to PHP VERSION i.e. 7.2.20? $ phpdbg -qrr ./bin/phpunit…
Dushyant Joshi
  • 3,672
  • 3
  • 28
  • 52
0
votes
1 answer

Symfony 4.3 returning invalid CSRF token always

System Info: Ubuntu 18.04.1 Apache 2.4.29 PHP 7.2.19 Server always reports that a csrf token on a login form is invalid. I have followed the symfony guide a couple Symfony guides…
Chris
  • 811
  • 8
  • 17
0
votes
0 answers

NotFoundHttpException in routing symfony4

i just created my first symfony 4 application and i wanted to try the routing but it didn't even work it's just stuck to the main route welcome to symfony 4 etc ... neither annotations or routing.yml worked i didn't know where is the problem and…
AOUADI Slim
  • 299
  • 1
  • 8
  • 27
0
votes
1 answer

Symfony 4.3.2 and problem with injection dependencies into FOS User Bundle controllers

I am using Symfony 4.3.2 and it seems that FOS User Bundle doesn't work with this version. Every time I try to call action from this bundle ("/register", "/profile" etc.), I get this error Controller…
Jan Pech
  • 75
  • 1
  • 8
0
votes
2 answers

Symfony 4.3 Multiple ChoiceType can only add values and not remove when using PATCH

Given form: ... $builder ->add('testArray', ChoiceType::class, [ 'choices' => ['ROLE_ADMIN' => 'ROLE_ADMIN', 'ROLE_USER' => 'ROLE_USER'], 'expanded' => true, 'multiple' => true …
Leigh Bicknell
  • 854
  • 9
  • 19
0
votes
1 answer

Symfony 4.3 bug in form made by make:registration-form

After creating registration form in that way: https://symfony.com/doc/current/doctrine/registration_form.html There is a problem with creating account. In previous version I did it in the same way, and there weren't wny problem. I am not sure is it…
k1000
  • 78
  • 1
  • 5
0
votes
0 answers

How to upgrade Symfony minor version from 4.2 to 4.3

I need to upgrade Symfony minor version from 4.2 to 4.3. I check the official document and find there is only 4.0 to 4.1 and there is no description for which files should be edited manually. I follow the document and find that is not clear enough…
AntmadDG
  • 66
  • 1
  • 6
0
votes
1 answer

Create a custom route in a custom page

I'm using Symfony 4.3 and Sonata 3.x version. I'm trying to create a custom route in a custom Page but I get the error : An exception has been thrown during the rendering of a template ("unable to find the route…
Alexis
  • 347
  • 5
  • 16
-1
votes
1 answer

How to use Intl component with table builider?

Hey I use ominis/datatables bundle in Symfony 4.3. I store in my db country code from Intl. How to use Intl::getRegionBundle()->getCountryName($value) when i'm using table builider. My code below (but not working) $table =…
-1
votes
1 answer

How to get entity query result as Object

$contacts = $this->getDoctrine()->getManager() ->getRepository(Contact::class) ->createQueryBuilder('c') ->select('c') …
-1
votes
1 answer

symfony 4 form with multiple arrayCollection

well, every user has multiple sports so i have created table users and table sports and table usersport so i want that the user select multiple sport and store it in table user sport user entity arrayCollection /** *…
-1
votes
1 answer

Error connecting to database in production environment

When launching my web app I get a 500 error. The prod.log shows a connection error to the database, and just below that there is a cache.WARNING: Failed to save key in the /var/www/project/var/cache folder. (Not sure if they are related.) The error…
-2
votes
2 answers

What's the issue on my repository function?

I get the following error when i try to use this in my controller Return value of App\Repository\AccountRepository::findOneByAccountCode() must be an instance of App\Repository\Bank or null, instance of App\Entity\Account returned /** *…