handle HasOne relationship