title: foreign key never save with embed relation
body: <p>I take many hours to find a solution to save the foreign key in the mother table.
  I'm trying to use embed relation with symfony 1.4 (i have ahDoctrineEasyEmbeddedRelationsPlugin too).</p>
  
  <p>When i read the symfony documentation here </p>
  
  <p><a href="http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms" rel="nofollow">http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms</a></p>
  
  <p>the schema is :</p>
  
  <pre><code>Product:
    columns:
      name:           { type: string(255), notnull: true }
      price:          { type: decimal, notnull: true }
  ProductPhoto:
    columns:
      product_id:     { type: integer }
      filename:       { type: string(255) }
      caption:        { type: string(255), notnull: true }
    relations:
      Product:
        alias:        Product
        foreignType:  many
        foreignAlias: Photos
        onDelete:     cascade
  </code></pre>
  
  <p>the embedRelation looks like:</p>
  
  <pre><code>// lib/form/doctrine/ProductForm.class.php
  public function configure()
  {
    // ...
  
    $this-&gt;embedRelation('Photos');
  }
  </code></pre>
  
  <p>In my case i can't do otherway, it's the contrary, the product have the relation keys, i have something like that:</p>
  
  <pre><code>Product:
    columns:
      name:           { type: string(255), notnull: true }
      price:          { type: decimal, notnull: true }
      photoid:        { type: integer }
      ownerid:        { type: integer }
    relations:
      Photo:
        local:        photoid
        foreign:      id
        type:         one
      Owner:
        local:        ownerid
        foreign:      id
        type:         one
  Photo:
    columns:
      id :            { type: integer }
      filename:       { type: string(255) }
      caption:        { type: string(255), notnull: true }
  owner:
    columns:
      id :            { type: integer }
      firstname:      { type: string(255) }
      lastname:        { type: string(255), notnull: true }
  </code></pre>
  
  <p>and the embedRelation:</p>
  
  <pre><code>// lib/form/doctrine/ProductForm.class.php
  public function configure()
  {
    // ...
    $this-&gt;embedRelation('Photo');
    $this-&gt;embedRelation('Owner');
  }
  </code></pre>
  
  <p>And there are not widget related to the product like name or price to update in the form but only informations coming from photo and owner table.</p>
  
  <p>When i save the new form, photo and owner object are save in the table, and ids are created with sequences. The problem is that Product is never update. photoid and ownerid still stay to null.
  It's like embedded form Photo and Owner are save after the root form.</p>
  
  <p>Is it possible to use embedrelation in that case?
  If then what is the correct way to save the foreign keys in Product table when the root form is save in the processForm? 
  What's the trick, thx for help.</p>