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
0
votes
1 answer

Integrity constraint violation in my api platform relation

Symfony : 4.4 API PLATFORM : 2.5 I have to entities : Client & Location : a client have many locations, a location is related to one client Client Entity: /** * @ORM\Entity(repositoryClass="App\Repository\ClientRepository") * * *…
Med Karim Garali
  • 923
  • 1
  • 14
  • 37
0
votes
0 answers

Symfony 4 : setting {_locale} parameter in route definition leads to "no route found" error

I've a Symfony 4 app that is running fine until I want to define a route with the _locale parameter. I define two routes for the same action with the following code : /** * @Route("/sites/{id}", * name="site_get", * methods={"GET"}, * …
Vincent
  • 384
  • 1
  • 3
  • 11
0
votes
1 answer

Sonata Admin for Symfony 4.4 not possible install twig/twig conflict

I run new project Symfony 4.4 symfony new new_project --version=4.4 then composer require sonata-project/admin-bundle and get errors composer require sonata-project/admin-bundle Using version ^3.72 for sonata-project/admin-bundle ./composer.json has…
Developer
  • 2,731
  • 2
  • 41
  • 71
0
votes
1 answer

Use an external repository with symfony4 trouble with autoload and parameters

I use two self developed libraries located in github as a private repository so I can reuse it in several projects. I include them via composer: "license": "proprietary", "repositories": [ { "type": "vcs", "url":…
Calamity Jane
  • 2,189
  • 5
  • 36
  • 68
0
votes
0 answers

User Notice: Required @OA\PathItem() not found : symfony 4

I m using symfony 4.4 / nelmio api doc bundle 4.0 / zircote swagger-php 3.0. When i try with a first example i get this error : User Notice: Required @OA\PathItem() not found namespace App\Controller; use OpenApi\Annotations as…
0
votes
0 answers

How to show custom 500 error page in production only in symfony?

I created a custom 500 error page by overriding the default 500 page. I did this by creating exception.html.twig template in templates/bundles/TwigBundle/Exception/exception.html.twig. But the problem is that it shows this template in all…
Iftikhar uddin
  • 3,117
  • 3
  • 29
  • 48
0
votes
1 answer

Symfony 4.4: entity/model property reserved for the image file upload is newer being set by the form system (result is always null - no errors)

I'm trying to implement an input data filter for the API service based on Symfony 4.4 by using internal form system. In most cases, it works just fine - integer or text-based fields. Somehow it does not work as expected when it comes to file/image…
Boštjan Biber
  • 444
  • 3
  • 12
0
votes
0 answers

doctrine lazy loading collection is empty

I have a User entity with One To Many relation such as this: /** * @ORM\OneToMany(targetEntity="UserMarket", mappedBy="user") * @var Collection|UserMarket[] */ private Collection $userMarkets; This User object is returned by simple UserProvider…
Arkadiusz Galler
  • 305
  • 3
  • 18
0
votes
1 answer

Overriding Controller in Symfony 4.4 (Decorates) - "You have requested a non-existent service"

I have a Bundle named Jason/JasonSticksBundle and inside this I have a controller named StickController. I have a service defined within Jason/JasonSticksBundle/Resources/config/services.yaml Jason\JasonSticksBundle\Controller\StickController: …
0
votes
0 answers

Symfony 4 Form Builder EntityType Field "not a valid class" error

I am trying to add Select form field by using values in DB table. In the official documentation it is described as in the picture below: I did implemented in the same way but I am getting Expection: The "App\Entity\Definition" entity has a…
Nuryagdy Mustapayev
  • 667
  • 1
  • 7
  • 27
0
votes
1 answer

Webpack Encore can not find installed dependency Spectrum-colorpicker2

Intro I would like to use color picker in my project. My choice stopped on spectrum-colorpicker2 because of modern look and features. Documentation site; Code on github; YarnPKG package. I am using Symfony v4.4 with Webpack Encore bundle. For JS…
Rikijs
  • 728
  • 1
  • 12
  • 48
0
votes
2 answers

I clear the cache after deployment to production but also lose my app cache. How do I exclude my pool while seeing new symfony code updates?

To deploy, I 'git pull' then 'bin/console cache:clear' to see the updates to my website. It works, but I don't want to lose MY cache pool's data when this happens. (I cache results to 3rd party api calls) I expected the symfony command to clear…
castacked
  • 1
  • 1
0
votes
1 answer

Where is correct place to authenticate users from multiple places?

In my first Symfony 4.4 project, I need to authenticate users from database. Unfortunately, before user sign-in I need to check user status in remote API service. If user is active in this service and credentials are same as in my database, I can…
0
votes
1 answer

Using LexikJWTAuthenticationBundle with an LDAP Provider

I have a project that use Symfony API-Platform. I want to use LexikJWTAuthenticationBundle on my project but my users are stored in an Active Directory so I set an LDAP UserProvider. I tried to combine the setting of the two following…
Pangebo
  • 9
  • 6
0
votes
1 answer

Symfony Mapping Error: "The association Entity\Rule#ruleSettings refers to the owning side field Entity\RuleSettings#rules which does not exist."

I would ask why am I getting error [FAIL] The entity-class AppBundle\Entity\Rule mapping is invalid: * The association AppBundle\Entity\Rule#ruleSettings refers to the owning side field AppBundle\Entity\RuleSettings#rules which does not exist. …