Category "symfony"

The method name must start with either findBy or findOneBy. Undefined method Symfony?

I am working through part4 of Symfony2, and while updating the controller and helper class code i got the following error message Undefined method 'getLatestBl

A circular reference has been detected when serializing the object of class "App\Entity\User" (configured limit: 1)

I am faced with a problem that gives me this error: A circular reference has been detected when serializing the object of class "App\Entity\User" (configured l

How to create tests w/Doctrine entities without persisting them (how to set id)

I'm working on tests for a Symfony2 project, and right now I'm looking for a way to create tests involving entity objects without persisting them. The problem i

Symfony 4 do not build in Production: Attempted to load class "WebProfilerBundle" from namespace

Symfony 4 do build in Dev mode but do not in Production mode while producing the error: Attempted to load class "WebProfilerBundle" from namespace. The WebPr

Symfony HttpFoundation UploadedFile "not uploaded due to unknown error" when using Doctrine DataFixtures

I've been using my Attachment entity based on the cookbook recipie How To Handle File Uploads With Doctrine in Symfony 2.3. It works well, even in functional t

Symfony post request body parameters?

I'm sending POST request by postman with header application/json and the body: { "name": "user" } And when I try to get this parameter from the request obj

Can't create a new Symfony project

I can't create a new Symfony project as described in the Symfony Documentation: https://symfony.com/doc/4.3/setup.html This is the command I use: symfony new -

How to avoid terminal to catch error instead of Symfony profiler

[edited on 19th june] The question is not regarding the content of the logs, but why logs doesn't not appear in my symfony profiler My symfony profiler doesn't

Command composer require symfony/apache-pack doesn't create .htaccess file

When I execute the command: composer require symfony/apache-pack It doesn't create an .htaccess file as it is cited in the documentation here. How can I fix

Could not find the entrypoints file from Webpack: the file ".../public/build/entrypoints.json" does not exist

I'm trying to setup a symfony project i cloned from github, i'm new to setting up symfony and need help. I've done composer install but it won't come up with th