Category : symfony

I have a collection type to create my form. I want to passe the category.id as an hidden field This is a part of what i have in my builder ->add(‘category’, HiddenType::class, [‘property_path’ => ‘category.id’] ) $builder->get(‘category’)->addModelTransformer(new CategoryTransformer( $this->categoryRepository )); I’ve added a ModelTransformer in order to "plug" the value of the ID to the ..

Read more

I came along the development situation that the Symfony translation process did not work for a selected system configuration. Thus I am looking again at design alternatives for extracting translatable data in more detail in combination with this software library. The corresponding data export from involved source files should be achievable by console commands. See ..

Read more

I am trying to update Twig in Symfony 4 like this: composer require twig/twig The error message is: Your requirements could not be resolved to an installable set of packages. Problem 1 – twig/extensions is locked to version v1.5.4 and an update of this package was not requested. – twig/extensions v1.5.4 requires twig/twig ^1.27|^2.0 -> ..

Read more

I’m using Symfony 4.4.10 and I do have problem with correct error 4xx/5xx handling to get users to my custom html. On production, when 500 error occurs, I’m getting this kind of screen: Which is weird, because I followed this tutorial: https://symfony.com/doc/current/controller/error_pages.html I have my templates overridden (like here), but still above screen occurs. (adding ..

Read more

I have this configuration for docker: # docker-compose.yml environment: REDIS_SERVER: redis REDIS_PORT: 6379 And then in symfony I use this to configure parameters: # parameters.yml redis_port: %env(REDIS_PORT)% And then I use the parameter to configure Picmore’s cache: “`yaml # pimcore.yml cache: pools: redis: enabled: true connection: port: ‘%redis_port%’ But I get the error Invalid type ..

Read more