Commit 3aceaa01 by savvot

yii\redis\ActiveRecord::deleteAll() refactoring - code style updated

parent a5506e64
......@@ -234,7 +234,9 @@ class ActiveRecord extends BaseActiveRecord
public static function deleteAll($condition = null)
{
$pks = self::fetchPks($condition);
if(!$pks) return 0;
if(empty($pks)) {
return 0;
}
$db = static::getDb();
$attributeKeys = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment