mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Unexpected SQL Syntax error on doctrine/orm 2.16.0 missing Params #7200
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexander-schranz on GitHub (Aug 3, 2023).
Bug Report
Summary
Since the release and update to 2.16.0 there appears additional SQL errors.
Current behavior
SQL Error:
Not sure the dumped query from
vendor/sulu/sulu/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:86looks like:I really don't see the error in the SQL, the only strange things is that
paramsis empty 🤔.As it only appears for entities which have ResolvedTargetListener entities as target, I think something must have changed with the metadata loading which does crash this now or the ResolvedTargetListener is somewhere not longer keep in mind.
A similar mechanism as I know is used in Sylius but as a saw @jakubtobiasz already conflicted all versions above 2.15.2 in Sylius. In our case 2.15.5 did work so they maybe has additional problems.
Already tested the problem on MySQL 8 (Mac), MySQL 5.7 (Linux), PostgreSQL 13 (Mac), PostgreSQL 12 (Linux) so I think its unrelated to the used database and database version.
Just the error looks on postgreSQL different and tells us that the params are not send:
This is even not a overwritten entity just a entity which has a
Interfaceas target viaResolvedTargetListener. THow to reproduce
Stack Trace
Expected behavior
Should not fail.