In symfony2, doctrine2, I have a query which triggers an error :
Error \"1038 Out of sort memory, consider increasing server sort buffer size
T
If you are using the docker mysql container add the follow setting in docker-compose.yml:
db: image: mysql:8 command: --sort_buffer_size=512K