74,212 questions
-1
votes
0
answers
61
views
How to install league/csv bundle with Doctrine v3.3 on Symfony?
I am having a problem today installing the league/csv bundle (v9.27) on my Symfony (v7.2) project with doctrine/orm (v3.3)! When I run command php require league/csv, I get this message:
Your ...
2
votes
1
answer
106
views
Using macros with dynamic name using dot operator does not work
While upgrading twig v1.30 to v3.22.0 i encountered some problem using macros from an external file and calling them by using a variable value as dynamic name.
Given the twig file with the macros:
{# ...
-1
votes
1
answer
68
views
How to require login for a custom controller?
we are implemented a custom controller for one webspace of our sulu 2.6 installation. It requires login against our SSO, but the problem is, that the result is cached.
We have 4 Webspaces, just one ...
2
votes
1
answer
57
views
Symfony/Doctrine: PostgreSQL Migration Issue – Undefined column error only in HTTP Kernel (CLI works)
Symfony/Doctrine: PostgreSQL Migration Issue – Undefined column error only in HTTP Kernel (CLI works)
I'm working on a Symfony 7.3 project running on PHP 8.2. I recently migrated the database from ...
Advice
0
votes
3
replies
78
views
Symfony monolog add additional info to all logs
I need to add trackability information for all logs.
E.g. logged in user and route parameters (entity ID)
Right now I have this code:
use Monolog\Processor\ProcessorInterface;
class RequestProcessor ...
0
votes
2
answers
57
views
Symfony UX LiveComponent with collection
I'm using a LiveComponent to access a form with a OneToMany collection.
Adding an item works perfectly, but when I delete an item, the entire collection is deleted.
The code is below.
->add('...
-1
votes
0
answers
37
views
Cannot import js package installed with importmap in symfony 6
i've installed swiper js with importmap:require swiper in symfony. it download a umd version of the package in the vendor/
Note: i use it in a stimulus controller
We cannot import Swiper from "...
0
votes
0
answers
76
views
Symfony UX Live Components - debounce filter on `data-model` with `data-action` attribute
I have a menu that is using Live Components that shows, loads more, and filters through a list of brands. It shows a list of brands with checkbox for each, that acts as a filtering option on the page. ...
0
votes
1
answer
63
views
POST search on API-Platform
I’m trying to create a getCollection route using POST with API Platform.
The idea is to perform a search that takes a JSON payload to handle search conditions first, and later manage relations, ...
2
votes
1
answer
104
views
Show several markers on a map with Symfony UX Map
I would like to have multiple markers on the same map with Symfony and UX Map!
I've read the documentation but can't find the solution there!
At the moment, I can get all the markers but on different ...
2
votes
0
answers
45
views
Symfony 6 - EasyAdmin - Custom form type canvas
I use Symfony 6 with EasyAdmin,
I've been trying for several hours to understand how form types work in Symfony, and more specifically how to set up a custom form field, but I can't find a simple, ...
2
votes
1
answer
128
views
How I can direct an event from a specific transport to a specific bus?
In my symfony project I have this configuration upon messenger.yaml:
framework:
messenger:
transports:
async: '%env(MESSENGER_TRANSPORT_DSN)%'
failed: 'doctrine://...
1
vote
1
answer
79
views
RememberMe doesn't work correctly with basic FormLogin
Using Symfony 7.3, I have this basic security.yaml:
form_login:
login_path: app_login
check_path: app_login
enable_csrf: true
success_handler: ...
2
votes
1
answer
180
views
Why does doctrine/doctrine-bundle cause errors in my symfony / composer project after upgrade?
When trying to do a "composer upgrade", it fails in "@auto-scripts" when reaching doctrine/doctrine-bundle.
The error is:
Executing script cache:clear [KO]
[KO]
Script cache:clear ...
0
votes
0
answers
81
views
Symfony UX LiveComponent file upload works only on first request
I’m having trouble with file uploads in Symfony UX LiveComponent.
I’m using Symfony 7.2, Symfony UX 2.x, and PHP 8.2.
The problem
I have a LiveComponent form that includes a file upload field.
On the ...