diff --git a/README.md b/README.md index 38856ce..4eecf00 100644 --- a/README.md +++ b/README.md @@ -256,4 +256,24 @@ class ActionStoreSearch extends ActionStore } } } +``` + +**resetCounter** + +get user model_id count + +```php +ActionStore::resetCounter( + ActionStoreSearch::FAVORITE_TYPE, + ['model' => Company::tableName(), 'model_id' => $company->id, 'user_id' => \Yii::$app->user->id] +); +``` + +get all model_id count + +```php +ActionStore::resetCounter( + ActionStoreSearch::FAVORITE_TYPE, + ['model' => Company::tableName(), 'model_id' => $company->id] +); ``` \ No newline at end of file