title: How to assign foreign key in a master detail relationship using generator in Delphi XE2?
body: <p>As an example:</p>
  
  <p>I have two tables in firebird:</p>
  
  <p>TB_CUSTOMER </p>
  
  <ul>
  <li>IDCUSTOMER (autoincrement generator)</li>
  <li>CUSTOMERNAME</li>
  </ul>
  
  <p>TB_PHONE</p>
  
  <ul>
  <li>IDPHONE</li>
  <li>IDCUSTOMER (foreing key from TB_CUSTOMER)</li>
  <li>PHONE</li>
  </ul>
  
  <p>I have a registration form developed in Delphi. The table data TB_PHONE are handled using a dbgrid. I can not assign the value of the field IDCUSTOMER in TB_PHONE, because it was not generated by the Firebird generator. How can I make the relationship between the tables? I want to implement it without first saving the table data TB_CUSTOMER. I'm using datamodules with IBDAC.</p>
  
  <p>Any sugest?</p>