From 61dbc0e618c54804eed7274164283d14876e7839 Mon Sep 17 00:00:00 2001 From: SoHardKI Date: Thu, 4 Jul 2019 11:36:06 +0300 Subject: [PATCH] fix_request --- backend/modules/card/models/UserCardSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/modules/card/models/UserCardSearch.php b/backend/modules/card/models/UserCardSearch.php index 98f7a7c..f51a1c0 100755 --- a/backend/modules/card/models/UserCardSearch.php +++ b/backend/modules/card/models/UserCardSearch.php @@ -46,7 +46,7 @@ class UserCardSearch extends UserCard { $query = UserCard::find(); // add conditions that should always apply here - + $query->where(['id'])->distinct(); //try join 3 tables $query->leftJoin('card_skill', 'card_skill.card_id=user_card.id'); $query->leftJoin('skill', 'skill.id=card_skill.skill_id');