-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doctrine DBAL 2.13 $statement->execute() returns bool (instead of Result) #4569
Comments
I can confirm, that changes in 2.13.0 is a little weird comparing to Changelog. |
Yes it looks we made a mistake there, will try to figure it out. |
Thank you. |
Fixed in #4580 |
Thanks for the fix. Side note: The release doc (https://www.doctrine-project.org/2021/03/29/dbal-2.13.html) still states that "$result = $statement->execute();" is to be used now. Updating to 2.13.1 reveals that execute() is now (too) deprecated, so the notes could need an update :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Report
Summary
The release notes for DBAL 2.13 (https://www.doctrine-project.org/2021/03/29/dbal-2.13.html) stated that "DBAL 3.0 extracts all fetch-methods from the Statement API and moved them to a new Result API that is returned from Statement::execute. **We have backported this API to 2.13**"
It also gives an example that with 2.13 you could/should use code like this:
Current behaviour
$statement->execute() still returns only a boolean value instead of a resultset.
How to reproduce
Expected behaviour
$statement->execute() should return a resultset instead of bool.
The text was updated successfully, but these errors were encountered: