Symfony 3.4 PHP 7.4 I am trying to map SymfonyComponentHttpFoundationExceptionSuspiciousOperationException to another response code. Basically like Laravel did: https://github.com/laravel/…
Tag: symfony
Symfony 5 Delete methods, Unable to guess how to get a Doctrine instance from the request information for parameter
I wanted to put in my controller a second delete button to delete comments but I got lots of error messages like the one from ParamConverter because it did not recognize the class. So in my controller …
Force doctrine datatype choice, from tinytext to varchar
I’ve describe my entity with short text properties with fixed length. When I use the command make:migration, it generates an SQL code with TINYTEXT datatype. In my case it will be more accurate to use VARCHAR, as my properties have short fixed length. I’ve search, but I find no satisfying solutions. I would like to indicate to Doctrine to use
Symfony 5 won’t load CSS file [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. This post was edited and submitted for review 8 months ago and failed to reopen the post: Original close reason(s) were not resolved Improve this question I am
There is a way to load roles from a specific table in Symfony?
I have an app that manages all of its users inside one entity (USER), implementing the UserInterface, as recommended. Linked to it, I got the CUSTOMER and the EMPLOYEE entities: each one storing …
Symfony Form not showing correct error (pending on constellation)
I have an issue with the constrains-check of my form and the correct display of errors. describtion of problem The form has three checkboxes and two of them are mandatory to be checked by the user (accepting Terms and Conditions stuff). if only one of the mandatory checkboxes (either the first or the secound) is not checked, the error is
Symfony : how to get all user posts related with oneToMany relation
I have two entity User and Booking which are related with oneToMany relationship, when a user ake a booking the user id is saved in the user_id column table of booking, I want in my controller to …
Symfony serve looks for PHP libraries at the wrong place
I had previously multiple installations of PHP on my computer. I deleted all of them and reinstalled php from the official source which is now found at C:\php. The symfony serve command (ran from PhpStorm console) looks for missing modules in the wrong directory. (I don’t even have xampp anymore, but even if I copy the files to the location
Symfony : How to fetch all object data from entity related with oneToMany relationship
I have “Car” and “Booking” entities related with oneToMany relationship :
ManytoMany ArrrayCollection In forms Symfony
I’m working on a Symfony project where an I have two types of User Client and EmployeSpie, both have their own entity. When you create/edit a user you can link EmployeSpie to a CLient. That’s where is my problem, When I edit or create a user I can create a user but nothing is store inside my table which make