symfony-docker
symfony-docker copied to clipboard
Large number of entities cause ORM mapping to break
I'm facing a weird issue 2 days ago, everything was working fine until last week, when I create any file inside Entity folder, and try to generate migration, the migration drops all tables and kept only one, I thought It's a Doctrine ORM issue and opened a ticket, also the debug:router don't return any entity route (using api-platform)
Today, I created a fresh docker-based project and put my entities to it, the same issue appears, then I tried to launch project without docker, and it worked.
I've tried another project with older version of symfony-docker, the same thing happened after I created 48 Entity
The first issue is probably linked to the doctrine/migration project.
The second is probably linked to the docker volume. We've already had reports of behavior like this here:
- https://github.com/dunglas/symfony-docker/issues/226#issuecomment-1106150198
- https://github.com/dunglas/symfony-docker/issues/241#issuecomment-1116334681
Both issues caused by same problem, even api-platform entity ressources not showing when the issue appears
Fixed by Switching to Debian, Thank you
So it's another musl issue
This issue appears again, I must rebuild docker whenever it appears
@aelfannir have you switch to Debian?
@aelfannir have you switch to Debian?
I just overridden symfony-docker old skeleton (Alpine) by the new one (Debian).
I temporary fix it by rebuilding fresh images whenever it happens