Merge pull request #9 from apuc/change_profile

Change profile
This commit is contained in:
kavalar 2019-07-04 11:37:31 +03:00 committed by GitHub
commit 00d1408c6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ class UserCardSearch extends UserCard
{ {
$query = UserCard::find(); $query = UserCard::find();
// add conditions that should always apply here // add conditions that should always apply here
$query->where(['id'])->distinct();
//try join 3 tables //try join 3 tables
$query->leftJoin('card_skill', 'card_skill.card_id=user_card.id'); $query->leftJoin('card_skill', 'card_skill.card_id=user_card.id');
$query->leftJoin('skill', 'skill.id=card_skill.skill_id'); $query->leftJoin('skill', 'skill.id=card_skill.skill_id');