commit
00d1408c6e
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user