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

Parametes conversion #93

Open
TyRun555 opened this issue Sep 14, 2021 · 0 comments
Open

Parametes conversion #93

TyRun555 opened this issue Sep 14, 2021 · 0 comments

Comments

@TyRun555
Copy link

Why array so unique as we must manually wrap it to Parameter object and ORM can't do it automatically ?

As docs says:
"Using Parameters

By default, any passed value will be converted into Parameter objects internally. However, you must explicitly use Parameter while specifying array values:
$select->where('id', 'in', new \Spiral\Database\Injection\Parameter([1,2,3]));"

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

No branches or pull requests

1 participant