-
-
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
Missing parameter fetchArgument for fetch and fetchAll methods #3066
Comments
@Ocramius Can I ask why? |
@akrz it sets property fields with something inconsistent with reflection behavior, and creates instances by skipping ctor calls as well. If you really want to go in that direction, then you want to use a standard hydrator and avoid the bugs/quirks of PDO, by using something built in userland: even if slower, it is not worth the pain to go with the PDO internals here. |
Please see #2958 (comment) for more details. |
I'd remove it together with |
Not to mention all of those non-PDO drivers not/rarely supporting Class/Object hydration natively. We are currently doing basic "userland" hydration for those drivers just to keep compatibility with our driver API. This is something that should be done outside of DBAL. I wish we could get rid of fetch modes completely and simply provide associative arrays as results and leave everything else for other libraries/userland... |
And $cursorOrientation not support, and the "prepare" method does not support the settings of the scrollable cursor
|
Closing as the API is no longer supported. See #3070. |
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. |
If I want to fetch a record and I want to use PDO::FETCH_CLASS, I can't do
because the method signature only has one parameter:
The fetchAll method actually has a second parameter in the signature to assign an argument
But the Interface only has one parameter:
So it throws an annoying warning when I want to use
The workaround is setting the fetch mode and then do a fetch/fetchAll but it should be possible to pass an argument directly to those methods.
The text was updated successfully, but these errors were encountered: