Commit a942071d7188a7b2109dff4db0dc02db46ed2f76
1 parent
ac9a2bf6
01.03.16
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
frontend/controllers/CompanyController.php
@@ -182,7 +182,7 @@ class CompanyController extends Controller | @@ -182,7 +182,7 @@ class CompanyController extends Controller | ||
182 | } | 182 | } |
183 | 183 | ||
184 | 184 | ||
185 | - $query = Blog::find(['user_id'=>$company_id]); | 185 | + $query = Blog::find()->where(['user_id'=>$company_id]); |
186 | 186 | ||
187 | $countQuery = clone $query; | 187 | $countQuery = clone $query; |
188 | 188 |
frontend/controllers/PerformerController.php
@@ -254,7 +254,7 @@ | @@ -254,7 +254,7 @@ | ||
254 | throw new BadRequestHttpException('Пользователь не найден'); | 254 | throw new BadRequestHttpException('Пользователь не найден'); |
255 | } | 255 | } |
256 | 256 | ||
257 | - $query = Gallery::find([ 'user_id' => $performer_id ]); | 257 | + $query = Gallery::find()->where([ 'user_id' => $performer_id ]); |
258 | 258 | ||
259 | $countQuery = clone $query; | 259 | $countQuery = clone $query; |
260 | 260 |