Skip to content
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

Update '->where' method with binding params don't working #176

Open
FAST-JE opened this issue Feb 22, 2020 · 2 comments
Open

Update '->where' method with binding params don't working #176

FAST-JE opened this issue Feb 22, 2020 · 2 comments

Comments

@FAST-JE
Copy link

FAST-JE commented Feb 22, 2020

Hi, everyone.
Method 'where' with passed two params don't working for me.
I do that ->where('gir = :gir', ['gir' => 'gir_val'])
Also phpstorm shows warning with the text:

Method call is provided 2 parameters, but the method signature uses 1 parameters.

Screen Shot 2020-02-22 at 3 43 54 PM

@bigSiebs
Copy link

Did you install via composer? I ran into this same issue because I installed via composer with the prefer-stable option set to true. I was reading the documentation for the 3.x branch, but unknowingly using the 2.x branch that composer installed. Running composer require aura/sqlquery 3.x-dev fixed the issue for me.

@jimbo8098
Copy link

I'd use the following:

->where('id = :id')
->bindValue('id',2);

I'm not 100% sure that format works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants