<div class="gmail_quote"><div>Hi Igor,</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
</div>So, why you don&#39;t simply add a &#39;customer&#39; ivar to document<br>
and to access it, you then just need to say:<br>
<br>
document customer<br>
<br>
instead of looking it up using index?<br></blockquote><div><br></div><div>I&#39;m doing a bulk load form a .csv file so then I need look up for the document so it seems be the same.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
1:1 relation is a reference. Think simple :)<br></blockquote><div><br></div><div>The relation between aDocument (with documentNumber and sex) is 1:1 but documentNumber and customer isn&#39;t 1:1.</div><div><br></div><div>
Facu</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
&gt; See you,<br>
&gt; Facu<br>
<div><div></div><div class="h5">&gt;<br>
<br>
<br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div></blockquote></div><br>