fix_request

This commit is contained in:
SoHardKI 2019-07-04 11:36:06 +03:00
parent a0fe5ed985
commit 61dbc0e618

View File

@ -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');