获取关联模型已软删除的数据
>[success] 关键点:removeOption('soft\_delete')
```
<?php
namespace app\admin\model; //命名空间
use think\Model; //先引入Model
class User extends Model
{
//一对一关联并获取info表被软删除的数据
public function info(){
return $this->hasOne("Info", "id","user_id")->removeOption('soft_delete');
}
}
```