5.0.0 - 普通 - 未处理
/**
* hasOne cs_withdraw_user
*/
public function getWithdrawUser()
{
return $this
->hasOne('WithdrawUser', 'withdraw_user_id', 'withdraw_user_id')
->field('withdraw_user_id,user_id,is_delete', true)
->setEagerlyType(0);
} $result = self::get(function ($query) use ($data) {
$map['withdraw.withdraw_id'] = ['eq', $data['withdraw_id']];
$query->with('getWithdrawUser')->where($map);
});返回的结果中field是无效的,不管是过滤,还是指定返回字段.在5.0.7中还是有效,升级到5.0.9发现问题了,这个是疏忽,还是官方已经废除此方法了?
麻烦回复下,我好对现有的代码进行安排.
