All Questions
36,916
questions
0
votes
0
answers
20
views
A circular reference has been detected when serializing the object of class Symfony error
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)]....
-1
votes
0
answers
26
views
Cannot connect to Postgres from my php/symfony application
I'm having issues connecting to any database from my php/symfony application
when I try to connect to pg_connect("host=localhost port=5432 dbname=dbname user=username"); the app just dies ...
1
vote
0
answers
14
views
Understanding uriTemplate and Variable IDs in Symfony API Platform
I'm currently working on a Symfony project using API Platform, and I'm running into some confusion regarding the uriTemplate system and how it handles variable IDs.
I have an entity called Article, ...
0
votes
0
answers
34
views
Handling Fetch API Errors in JavaScript: Displaying API Response in a Popup
I'm working on a payment integration using the Payway API in a Symfony application with Twig templates. When I submit expired credit card details, the API correctly returns a JSON response indicating ...
-2
votes
0
answers
33
views
The specified symfony 1.4 route with param does not showing in UI staging server
I added page redirect in my UI but it does not support my staging server. this is my url
<a href="<?php echo url_for("@product_ebook?ean={$product->getEan()}") ?>">...
1
vote
2
answers
42
views
Symfony Doctrine have two property for the same column in database
Here's a sample entity
use ApiPlatform\Metadata\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Table(name: 'user')]
#[ApiResource(
...
0
votes
0
answers
29
views
Symfony not existing routes after cache update
This is the first time I’ve encountered this, after the bin/console cache:clear non-existent routes appeared, physically such methods no longer exist in the controller, and accordingly it doesn’t see ...
0
votes
0
answers
32
views
Symfony logging users out after sending a StreamedResponse
I have a Symfony 6.3 application that enables users to produce a report.
They can click a button to download the report, which is working fine, but then if they navigate to another page (or refresh ...
-4
votes
0
answers
36
views
'ion' instead 'selection' in MySQL [closed]
I am using PHP & Symfony with MySQL.
Whenever I try to type 'selection', it always saves to 'ion'.
If I try to fix it from the web, it says it's saved but shows actually 'ion'. Then I have to fix ...
1
vote
1
answer
58
views
+50
Sentry Queue integration with Symfony messenger
I've been trying to set up Symfony Messenger with Sentry Queues for a while but without any luck. I cannot find any resources online related to this specific topic. I'm trying to use the example ...
2
votes
0
answers
40
views
Can't understand Nelmio Api Doc Annotations
I'm having trouble configuring the generation of API documentation using NelmioApiDocBundle with Symfony. I'm trying to add annotations to describe my routes, but it doesn't seem to be working as ...
-2
votes
0
answers
27
views
Symfony EasyAdmin Form question - for EDIT, show some fields as DETAIL
I have a regular symfony easyAdmin setup, and on the EDIT page for an entity, I want some fields to show up as non-editable, so I disable them with setFormTypeOption('disabled','disabled'). But when I ...
1
vote
1
answer
43
views
Redirection and rendering issue with Symfony
I have a route, which is accessed as a return from a webhook, the function of this route is to take what comes from the webhook and then redirect it to another page.
I'm using ngrock to receive the ...
0
votes
0
answers
36
views
SQLSTATE[HY000]: General error: 1005 Can't create table 'service' (errno: 13)
MySQL keep failing on creating table. I read about the error on other resources and nothing helped.
When i ran command -
"docker compose -f ./docker/docker-compose-linux.yaml run --rm php-cli ./...
1
vote
1
answer
44
views
API Platform not applying validation using groups on POST requests
I am facing an issue with API Platform (using Symfony 6.4) where validations specified using validation groups are not being applied automatically during POST operations. Despite properly configuring ...