20], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'role_id' => '角色', 'user_id' => '用户', 'app_id' => '应用入口', ]; } /** * @return \yii\db\ActiveQuery */ public function getRole() { return $this->hasOne(AuthRole::class, ['id' => 'role_id']); } }