mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Subquery broken after upgade from 2.6.3 to 2.6.4 #6313
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 @jimiero on GitHub (Sep 29, 2019).
Originally assigned to: @Ocramius on GitHub.
BC Break Report
Summary
After upgrading to 2.6.4, I get this error:
Notice: Array to string conversion
Previous behavior
Before applying the update it worked just fine.
Current behavior
Now receiving error: Notice: Array to string conversion
How to reproduce
This is the code which was working before:
with 2.6.4 it returns that error, if I downgrade to 2.6.3 it's just fine.
Is this a bug or the code has to be updated?
@Ocramius commented on GitHub (Sep 29, 2019):
You seem to be binding
int[][]rather thanint[]@jimiero commented on GitHub (Sep 29, 2019):
@Ocramius you mean the code is doing it wrong or is just a bug?
@Ocramius commented on GitHub (Sep 29, 2019):
It looks like a bug in yout code, not the ORM. This code was probably never working, but the ORM was silently converting things for you.
@jimiero commented on GitHub (Sep 29, 2019):
@Ocramius any suggestion what to modify to have it working?
@Ocramius commented on GitHub (Sep 29, 2019):
You need to
array_column()on the result of your DBAL query.Closing here meanwhile.