reflection: fixed hasOne definition