Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-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 ...
Da Orestes's user avatar
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 ./...
Andry's user avatar
  • 1
0 votes
0 answers
84 views

Could not convert PHP value of type DateTimeImmutable to type Doctrine\DBAL\Types\DateTimeType

I have a Symfony Command that reads rows from a spreadsheet and inserts them into a MySQL table. The command was working fine in Symfony 4.4. I started getting this error after I upgraded my version ...
sridhar pandurangiah's user avatar
-1 votes
1 answer
29 views

Foreign keys/Join columns and Join tables are not created by Doctrine in Symfony 5+

In the title I mentioned both Foreign keys and Join tables. In this case, to begin with, I am concerned with Foreign keys. But anyway a Join table is just multiple Foreign keys in a table. It seems ...
Hachem Benyahia's user avatar
0 votes
0 answers
36 views

Doctrine DB Migration that matches existing DB Setup

I have a Database that was created in a Node App with Sequilize. I am moving the whole app from node to php 8.3 and Symfony 6.4 + doctrine. When trying to adapt the entities to Doctrine and run the ...
Herr Nentu''s user avatar
  • 1,476
1 vote
1 answer
47 views

Doctrine ORM fails to delete entities from MySQL DB

I'm trying to clear a collection of entities. Here is my relation scheme: Game <-> GameQuest[] Player <-> PlayerGameQuestLink[] PlayerGameQuestLink entity has some metadata about when the ...
Alex654's user avatar
  • 31
1 vote
1 answer
83 views

Symfony serializer not serializing all class fields

I have two classes, one is for managing Events and the other are the Users. Users can participate to Events. When they participate they become "Attendees". The issue is when I serialize an ...
Cyprien Aubry's user avatar
0 votes
0 answers
32 views

Gitlab CI, docker:dind service SQLSTATE[HY000] [2002] Connection refused

I've a self hosted gitlab runner, I want to run unit tests in runner and I've a database container dump in aws s3 that I want to use while running unit tests. Locally unit-tests and same database ...
RRD's user avatar
  • 19
0 votes
0 answers
74 views

Doctrine Mysql JsonType Column value returns empty array despite data present

I have Symfony application which I recently Migrated (Only Symfony packages - from 5.4 to 6.4) and one entity has a field of type object A that extends JsonType from Doctrine and is behind 2 ...
Medical_Developer's user avatar
0 votes
0 answers
79 views

EasyAdmin 3.x display OneToMany realtion on details page

on easyadmin 3.4 and symfony 5.4 I have the following 2 entities: Event, Participant, where an Event can have many participants. I created a details page for the events on the controller's ...
Alex's user avatar
  • 1
-1 votes
1 answer
384 views

Why getting SQLSTATE[42S22] error on deploy

I have just finished my Symfony 7 project, and it runs fine on my PC with XAMPP. Now I've deployed it on my webserver, created the database, and have tried to run the doctrine migration in the shell. ...
cube4d's user avatar
  • 11
-2 votes
1 answer
165 views

Local Symfony cant connect to mysql Service that runs inside Docker Container

I have a local Symfony Project where I want to execute a Repository Function inside the code. The Problem is that I get an "Access Denied" Error. The credentials are correct because I can ...
Eugene's user avatar
  • 11
0 votes
0 answers
500 views

Doctrine Migration error Integrity constraint violation 1052 Column 'TABLE_NAME' in where clause is ambiguous

When I launch for the first time (on php container) : $ php bin/console d:m:m -n --allow-no-migration It's work fine but when I launch for second time the same command I have the error : In ...
S.Toullec's user avatar
0 votes
1 answer
57 views

Copied image does not save PHP symfony

I am trying to save an original and a copy of an image that gets sent from a form. I use 2 variables for it, first one stores original, second one is meant to store the copy. I have tried clone, copy ...
Jegi's user avatar
  • 13
0 votes
0 answers
51 views

Fixtures error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '51' for key 'table.UNIQ_794381C688009BCF'

I've been having trouble with this error for two days and I am stuck. I am not quite sure I understand where this comes from and I don't know how to solve it. In advance, thank you for your help. I am ...
borderwhirr's user avatar

15 30 50 per page
1
2 3 4 5
172