[relationship] fixed persisting hasOne relationship