
[
'label' => 'Роль',
'value' => function($model){
return $model->authAssignment->authItem->description;
}
]$query = User::find()->with([
'authAssignment' => function($q){
return $q->with('authItem');
}
]);
// в модели
public function getRole()
{
return $this->hasOne(User::className(), ['id' => 'user_id']);
}$model = Model::findOne(123);
echo $model->role;