John Davidson

php - Delete all model queries in yii

0 comments
Message:


 AllAdjustments::deleteAll(['plan_year_id' => $plan_year_id, 'column_type' => array_keys($allAdjustment), 'is_auto' => $is_auto,
['NOT',['column_id'=>1]],
]);

getting error error: "strtoupper() expects parameter 1 to be string, array given1188C:\xampp\htdocs\sir-git\vendor\yiisoft\yii2\db\QueryBuilder.php"



My Answer:
> AllAdjustments::deleteAll(['plan_year_id' => $plan_year_id]);

Rate this post

4 of 5 based on 3012 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us