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