先使用removeOption('field'),再根据field()自定义。如下:
$address_info = $user_nodel->where(['user.id'=>$user_id])->with('office')->removeOption('field')->field('office.morning_up')->find()
先使用removeOption('field'),再根据field()自定义。如下:
$address_info = $user_nodel->where(['user.id'=>$user_id])->with('office')->removeOption('field')->field('office.morning_up')->find()