/** * @return \yii\db\ActiveQuery */ public function getRole() { return $this->hasOne(Role::className(), ['id' => 'role_id']); }