Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

Using Symfony 7.3, I noticed when I have an error in my Application tests, the HTML returned contains the WebProfiler, I see all the CSS / JS / Html from WebProfiler and it makes it hard to read. I ...
Vincent Decaux's user avatar
0 votes
1 answer
44 views

I'm using Symfony UX Live Components to edit an NtExam. I get this error when editing the form: Expected argument of type "string", "null" given at property path "exam_title&...
Demi God's user avatar
  • 105
0 votes
1 answer
95 views

So, as per the docs, this is how we upload a file in Symfony Live components. If we have to upload a file along with other input, how to do it? Code from docs: <p> <input type="file&...
steven zong's user avatar
0 votes
0 answers
124 views

Before with my Symfony project with the version 6.1, I could do it. {{ form_start(form, {'attr': {'id': 'form-add-meeting'}}) }} {{ form_widget(form) }} <label for="">Date ...
Michaël Godinho Da Costa's user avatar
1 vote
0 answers
53 views

I've been looking into Symfony's code to understand it better and noticed that Symfony\Component\Security\Http\Authenticator contains the base authenticator classes that comes with Symfony, and in ...
537mfb's user avatar
  • 1,532
0 votes
0 answers
63 views

I have a Symfony 7.2 application with a controller, which should be called without authentication. In general, I have a firewall with a user login. Here you can see my security.yaml security: # ...
user3296316's user avatar
0 votes
1 answer
39 views

I'm trying to user DoctrineMongoDBBundle with Symfony 7.2 and 7.3.dev. If I link another document using ReferenceOne to the User Document form login authentication fails: 'Failed to unserialize the ...
Andras's user avatar
  • 1
0 votes
0 answers
47 views

Is there a way to set multiple routes for the admin, depending on the environment: local, dev or prod? For example: /backend in prod and /back in local.
Alguve's user avatar
  • 19
0 votes
0 answers
125 views

I am working with Symfony 7.2.5 and using AssetMapper with versioning enabled. I have two JavaScript files located in assets/js/, hello.js and main.js. In my base.html.twig file, I am trying to use ...
Chen Hanhan's user avatar
  • 1,789
1 vote
0 answers
88 views

I have a symfony 7.2 applikation. it is running local on a apache2 server and in a docker container(nginx, php8.3). I don't use redis. When i try a login, local works everything fine, here the ...
chrobaks's user avatar
0 votes
0 answers
23 views

When i update my entity with a Indices defination like this: #[ORM\Table(name: "car_count", indexes: [new ORM\Index(name: "idx_lat_lon", columns: ["latitude", "...
chrobaks's user avatar
0 votes
1 answer
66 views

Sorry for my bad english, it is not my first language. I'm developing an application in Symfony 7, where you can only access the app if you are logged in. I followed the Symfony documentation to ...
Csaba Vörös's user avatar
0 votes
1 answer
202 views

I have two autocomplete fields. class SignalementFormType extends AbstractType { private EntityManagerInterface $em; public function __construct(EntityManagerInterface $entityManager) { $this-&...
J.BizMai's user avatar
  • 2,806
0 votes
0 answers
16 views

Preparing a 301 redirect should be straightforward, but for some reason, I cannot get the reroute to trigger properly. I am trying to reroute "/some-old-path" to "/some-new-path" ...
Casso's user avatar
  • 149
0 votes
0 answers
65 views

In Symfony I want to dynamically create routes that are parsed from a JSON file like this { "home": { "path": "/home", "controller": "website\\...
Johannes's user avatar
  • 435
1 vote
3 answers
205 views

Upon my symfony application, I try to configure s3 as a service: services: Aws\S3\S3Client: public: true arguments: $args: version: 'latest' ...
Dimitrios Desyllas's user avatar
-1 votes
1 answer
402 views

In my controller I build a form and I return it to the user. Everything's fine so far. #[Route('/quotation', name: 'app_quote')] public function quotation(Request $request, EntityManagerInterface $...
Karrimor88's user avatar
0 votes
0 answers
28 views

Am building an app in Symfony 7 that will use HWIOAuthBundle as alternative authentication method. However, having to go back and configure new domains in the third-party services every time we add a ...
537mfb's user avatar
  • 1,532
1 vote
1 answer
1k views

I have a _form.html.twig partial template generated by the makerBundle command make:crud. I also have a full page template new.html.twig where I have included the partial template in a turbo-frame ...
DeadlyToy's user avatar
3 votes
1 answer
262 views

Because I want my applications to follow some kind of DDD structure, I want my Controller, Entity, Repository, Form etc to sit within a specific directory. For example: src/Appication/Dealer/...
Stok's user avatar
  • 51
0 votes
1 answer
345 views

In Symfony 7 app, I'm mapping request with MapQueryString/MapRequestPayload attributes. Controller's endpoint returns validation errors if request's parameter is of the wrong type. Here it is of type ...
Oleg Vartanov's user avatar
0 votes
0 answers
96 views

I've got a pure Symfony app. I had made own bundle, and want to define routes inside it via annotations/attributes. I don't want to define routes inside main app space - bundle should be installed and ...
M-Zoldak's user avatar
  • 158
1 vote
2 answers
165 views

I'm using Symfony 7.1 and EasyAdminBundle to list entities as tables and filter them. I have deployed the whole app to Heroku, which works absolutely fine. The only problem is: Some url-routes are ...
codiga's user avatar
  • 596
-1 votes
1 answer
62 views

Try to create API project with latest stack SF7, APIPlatform 4 and JWT. API run well for generating JWT Token into \auth URL BUT always return me ERROR : 401 Invalid credentials lot of trying solution ...
miltone's user avatar
  • 4,816
1 vote
0 answers
91 views

TL;DR Seems like with APP_DEBUG=1 Symfony catches and suppresses kind of exceptions. Presets. Installed Symfony 7, --webapp. Default env, settings. APP_DEBUG=1 Reproduce Make ping controller. Make ...
Ev.Il's user avatar
  • 11
0 votes
1 answer
114 views

For example I have a property #[Groups(['show', 'admin])] public mixed $name; I want serializer to ignore the property, if all the groups aren't in the context. For example here by default it will ...
Oleg Vartanov's user avatar
0 votes
1 answer
138 views

I need to check if my thinking is correct. My application allows to publish adverts on website. I have many entities with similar fields. For example consider this approach: I have 3 entities: ...
Flat Calm's user avatar
0 votes
1 answer
62 views

I have a couple of bundles and want to define some roles and hierarchy inside them. The app must somehow merge them into one hierarchy and I want to force somehow use this hierarchy security-bundle. ...
WGPavell's user avatar
0 votes
0 answers
61 views

#[Route('/displayer/{slug}', name: 'app_displayer', requirements: ['slug' =>'/[a-z-_]+(?:\.pdf)$/'])] public function displayer(string $slug): BinaryFileResponse|RedirectResponse the regex in the ...
Sebastien's user avatar
0 votes
1 answer
303 views

I have a Symfony 7.1 app and I would like to integrate AltCha via API in my contact form I always get AltCha API returned status code 403: {"error":"Invalid API Key.","...
Tavodar's user avatar
  • 79
1 vote
0 answers
68 views

I use token_handler to validate token. But I don't need it for PUBLIC_ACCESS routes. The thing is it triggers before access_control. Can I check somehow for a PUBLIC_ACCESS first? Or is there a better ...
Oleg Vartanov's user avatar
0 votes
1 answer
57 views

Output App\Entity\TourPackage {#313 ▼ -id: null -tour_category: "cultural_tour" -price: "3400" -tour_overview: """ <div>tourPackageImage1</div> &...
steven zong's user avatar
1 vote
1 answer
286 views

I am developing an API with Symfony 7.1 I decided to use DTO objects for processing and validating the parameters of my requests. To detect and report if a mandatory parameter is not present in the ...
counteraccro's user avatar
0 votes
1 answer
87 views

I have a problem with getting sample data in my database. There are three entities: Books BooksKind BooksTarget There is a OnToOne releationship from Books to BookKind and a ManyToMany relationship ...
Tavodar's user avatar
  • 79
-2 votes
1 answer
376 views

I'm trying to avoid cron and do the job with symfony scheduler. I'm almost there (tested writing some text to a file every 20 seconds), but I'm having hard time with understanding where to put the db ...
Andrei's user avatar
  • 26
0 votes
1 answer
49 views

I am using the Symfony serializer to denormalize JSON data and create an entity with relations. My json body looks like this: { "user": "1", "prop1": "string&...
Blayew's user avatar
  • 1
1 vote
2 answers
337 views

I'm trying to create a edit form for user and want to list current user roles in form and also want to make choice from all roles from enum Roles. There is a example of my code. Current error is "...
Madji's user avatar
  • 57
1 vote
0 answers
182 views

Let's start with the fact that everything works fine but when it comes to tests I can test not everything. When I use "NotifierInterface" service for sending "async" messages ...
Григорий's user avatar
-1 votes
1 answer
250 views

I'm trying to implement security form authentication in a Symfony 7.1.4 project. Nothing happens after submitting form to /login Route with POST type. No error in logs. Any idea how can i debug ? ...
David Cavansite's user avatar
9 votes
2 answers
6k views

I am developing a project in Symfony 7.1 and since the last update, I have encountered a small problem with the following deprecation: Since doctrine/doctrine-bundle 2.13: Enabling the controller ...
counteraccro's user avatar
-1 votes
1 answer
99 views

I try to implement a custom "checkCredentials" for the AbstractLoginFormAuthenticator but as mentioned here #40869, it is no longer in this class. GitHubGitHub AbstractGuardAuthenticator not ...
Nico's user avatar
  • 111
1 vote
0 answers
280 views

I want to add a dynamic field in a form. However, when clicking on the concerned field, nothing happens. Indeed, when clicking on the "Can publish a podcast" field, another field should ...
Cassius's user avatar
  • 19
0 votes
2 answers
618 views

I use Doctrine objects in database that are mapped to DTOs by services with a getComponentDtoFromEntity($component) method to expose them on API Platform 3.2 on Symfony 7.1 and PHP 8.3. Each DTO has a ...
Bruno Guignard's user avatar
0 votes
0 answers
67 views

I am reaching out because I am encountering a circular reference issue. I am using version 7 of the symfony framework I have tried to implement several solutions, such as the attribute: #[MaxDepth(2)]....
jeremie legrand's user avatar
1 vote
2 answers
803 views

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": { &...
Nathalie's user avatar
2 votes
2 answers
1k views

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 ...
Dimitri G's user avatar
  • 211
1 vote
0 answers
265 views

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 ...
Aleksandar Zivanovic's user avatar
0 votes
0 answers
220 views

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 ...
Sasha's user avatar
  • 8,723
0 votes
0 answers
87 views

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. ...
user25572171's user avatar
2 votes
2 answers
3k views

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 ...
David's user avatar
  • 895