We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Call deleteAll with "IN" condition \yii\redis\ActiveRecord::deleteAll(['in','id',[1,2,3]);
Count of deleted in return.
[yii\base\ErrorException] array_intersect(): Argument #1 is not an array
In \yii\yii2-redis\ActiveQuery.php:355 called $modelClass::isPrimaryKey($this->where[1]) isPrimaryKey first argument must be array (by phpdoc)
The text was updated successfully, but these errors were encountered:
What do you mean by "with strict_types=1"? How to reproduce that?
Sorry, something went wrong.
declare strict types on, in enter script declare(strict_types = 1);
declare(strict_types = 1);
In index.php?
index.php
Yep. When php will check incoming attributes for array_intersect(array $array1, array $array2, array $_ = null)
Or in child class file, wich extend ActiveRecord.
Even if no strict_types, problem exist. array_intersect require array attributes.
yii\redis\ActiveRecord::deleteAll()
1519f4e
Fixes #93: Fixed yii\redis\ActiveRecord::deleteAll() with condition
40190d2
samdark
No branches or pull requests
What steps will reproduce the problem?
Call deleteAll with "IN" condition
\yii\redis\ActiveRecord::deleteAll(['in','id',[1,2,3]);
What's expected?
Count of deleted in return.
What do you get instead?
[yii\base\ErrorException] array_intersect(): Argument #1 is not an array
Additional info
In \yii\yii2-redis\ActiveQuery.php:355
called $modelClass::isPrimaryKey($this->where[1])
isPrimaryKey first argument must be array (by phpdoc)
The text was updated successfully, but these errors were encountered: