For my project, I have a DoctrineIterator created by a repository. This iterator returns an array based on my internal request. I need another iterator returning an object based on this array a generic solution (I have more than one occurrence of this) The usage of the second iterator is out of my scope, so a can’t update the value
Tag: symfony
pass id of foreign key to the form via post
I’ve created a new field (“responsavel”) on my db for this entity (“Multa”), “responsavel” is a foreign key to another table (Usuario) and I want it to be shown on my …
Add TINYINT to Doctrine SQL types
Following Symfony doc, I tried to add TINYINT as entity column type. So far it works well, but two problem remain… Each time I want to perform a migration, Doctrine can’t reconize TINYINT for the …
Symfony 5 can’t install sensio/generator-bundle
i tried a fresh new symfony 5 project, but i cannot install the generator bundle to ease everything with doctrine entities. It seems that Symfony 5 is too new to install the generator bundle. Here is the output of the composer command to add the sensio generator bundle: and here is my composer.json file Answer This bundle does not support
Symfony 3.4 Functional tests
I have been stuck for some time on an error to do my functional tests with symfony 3.4. My app run a custom GuardAuthenticator for authenticate my users within CAS authentication. This is just for explain the context. In my tests, I don’t want to use it, I want to use a specific authentication system. I wrote functional tests. I
Symfony/Doctrine: get list of available commands
I have a Symfony project and I’m trying to get a list of available commands in my controller, so I tried to execute the list-command (together with –format=xml) to achieve that. I used the code listed here to run a command from a controller but end up with the error “Not passing a connection provider as the first constructor argument
How to get rid of intl deprecation message with symfony 5
Since I updated my project from symfony 4.4 to 5.0, I have on all my pages the following deprecation warning (only warning I’m having) : Please install the “intl” PHP extension for best …
How can I create a MockResponse with statusCode 400 header for MockHttpClient?
I would like to test different responses from an API using symfony/http-client, but how can I create statusCode 400? This is what I tried: public static function mockShipmentResponseFail(): …
Configuring Symfony 5 Application on Apache server
I need some help with configuring Symfony on apache2 web server. My current project category structure is: var/www/domain.com/public_html Inside public_html is where my Symfony application is located. I am stuck at figuring our what I am doing wrong in my either .htaccess or /etc/apache2/sites-available/domain.com.conf files. I am using symfony/apache-pack. My .htaccess files live inside /public folder as per documentation. Here
symfony 5.1: how to define a controller as a service
I’m a bit of a noob when it comes to Symfony. I am attempting to create a bundle with a controller that accepts a service as a constructor argument; however, I am receiving this error: The controller …