<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't simply add a 'customer' 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'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'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>
> See you,<br>
> Facu<br>
<div><div></div><div class="h5">><br>
<br>
<br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div></blockquote></div><br>