Questions tagged [symfony7]
The symfony7 tag has no usage guidance.
symfony7
17
questions
1
vote
1
answer
31
views
Running Vite dev mode on Symfony 7 application with DDEV webserver
I've been looking to run Vite in development mode (watch JS and CSS files) for my Symfony 7 app which is served with a DDEV webserver.
// package.json
{
// ...
"scripts": {
&...
0
votes
0
answers
17
views
Usage or alternative for oro/doctrine-extensions in Symfony7
my Symfony7 project need some SQL Functions especially dayofyear.
I added oro/doctrine-extensions to my composer.json file and added the doctrine:orm:dql: functions accordingly.
However I receive ...
1
vote
1
answer
67
views
Symfony 7.0 AssetMapper: JS Files Only Load on Initial Page Load or After F5 Refresh
I'm working on a project using Symfony 7.1 and PHP 8.3. I've encountered an issue with the AssetMapper where my JavaScript files only load on the initial page load or after an F5 refresh. When ...
-1
votes
0
answers
47
views
How to get the connected user in a handler with Scheduler in Symfony
I Have tried to get the connected user by injecting the security dependancy but it return null all time.I have used Docker for mercure Hub server, it's working well (get above this question to get the ...
0
votes
0
answers
41
views
Error in Symfony with Overblog: Could not find type with alias "Query"
I have using symfony with overblog/graphql-bundle.
While creating simple project with sample query and resolver,
Got an error "Could not find type with alias "Query". Did you forget to ...
1
vote
0
answers
58
views
Symfony 7.0 - Can't get user details in Event Listener
I use Symfony 7.0 framework. I got stuck with this for a few days. Googled, used AI chat, read documentation, but nothing helped.
I can't get use details inside of my Event Listener class from ...
-1
votes
0
answers
46
views
Symfony 7 -DoctrineExtensions softdeleteable
I installed Gedmo in order to use soft delete, but now I can't make entity via CLI. I am getting following error when I try php bin/console make:entity :
Compile Error: Declaration of Gedmo\...
0
votes
0
answers
80
views
Trying to configure Gedmo soft delete
I am trying to make doctrine.yaml include Gedmo soft delete. This is my configuration:
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
# IMPORTANT: You MUST configure your ...
0
votes
1
answer
67
views
How to Automatically Add ID Parameter to Route Generation in Symfony 7?
In my Symfony 7 project, I aim to automatically add the ID parameter to route generation if it is present in the current request parameters, whether generating the route via Twig or from a controller.
...
2
votes
0
answers
217
views
symfony 7, Twig, AssetMapper: assets are served fine on dev, but 404 in prod
I am naively trying to learn AssetMapper and follow the instructions but I must be doing something wrong. In my local development environment, it's working flawlessly. In the prod environment on the ...
0
votes
2
answers
89
views
Easy admin collection field add item
I got an issue with my CollectionField. I'm a collections of items just inserted. But when i try to add a new item the id of the new form is the same of the last just inserted. So the last element is ...
0
votes
1
answer
21
views
Symfony 7 How to transform FormType all fields into concatenated string
I have a custom FormType called EffectType created as below and this FormType is used in another FormType as a ->add('effect', EffectType::class) and I would like to transform all the data from the ...
0
votes
0
answers
41
views
Why is my Voter being called multiple times and without the subject when securing properties in API Platform?
I am working on a Symfony 7 application where I need to implement fine-grained access control using security voters. Specifically, I want to grant access to an entire resource based on one set of ...
0
votes
1
answer
67
views
Symfony 7 assets are loaded with wrong context path
I am developing a web application with Symfony 7.0. I have a given UI template (Velzon). There is a public/assets folder as well as a assets on top.
No I have created a simple Controller with the path ...
0
votes
1
answer
157
views
Install Bootstrap on Symfony 7, Error message after "package.json" add, and command "npm start"
Error message screencapture
Good morning,
I am installing Boostrap v 5.3.3 in Symfony following the Bootstrap documentation. But I encounter an error when launching the "npm start" command (...