-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
alpha 4->5 query param binding #1705
Comments
I've noticed that array_walk in setQuery method is executed if query is called |
@nowackipawel Please confirm the fix works. |
@lonnieezell : Result is exactly the same as it was ... :( sorry. I added d($this->binds); at the end of Query's setQuery method and when I called query from controller I get: ['id' => [22, true]] and from model: ['id' => 22]. I am not sure if this is the reason.... but looks like it is :/ |
@lonnieezell I had to add
to make my query works if it is called from the model. How to reopen the issue ? |
@lonnieezell
|
@nowackipawel Please create a new task then, with code samples to recreate. Though that's a query issue - doesn't sound like anything to do with spark? |
And I think what's going on with your issue is that once a query is ran, the flag is flipped, so the next query would hit the same issue. Refactoring it again currently. |
Just pushed another fix. I believe this should finally solve it. PLease let me know @nowackipawel |
After I've updated files from your fix. I noticed that
is not working anymore. I did two tests. I removed setEscapeFlags from one spark file and it is working as expected. ... as well as removing it from query which was called from model. What I wanted to say that it seams to work now. |
Excellent! Glad to hear that. Thanks! |
@lonnieezell I seem to be getting a variation of the problem still (dev-master a388e63). Note that this has been introduced since alpha4 If I try to bind an integer i get an error, but if I cast it to a string it works fine. For example, this query executes fine:
However, as an integer, it does not get bound and the query fails
To make it more complicated, if I
Thanks |
This line called from the model
produces (grabbed inside catch block):
this lines called from the Controller:
produces:
Issue showed up in the newest git version.
The text was updated successfully, but these errors were encountered: