title: mergeForm() - symfony
body: <p>I'm using mergeForm to display a form and then another merged into it.</p>
  
  <p>The form I'm editting is the admin module for Article with a ContentItemForm merged.</p>
  
  <p>Schema in simple terms is:</p>
  
  <pre><code>Article
  id
  
  ContentItem
  id
  article_id
  is_comment
  </code></pre>
  
  <p>In my ArticleForm I have the following:</p>
  
  <pre><code>  public function configure()
    {
       $this-&gt;mergeForm(new ContentItemForm(ContentItemPeer::retrieveByPK($this-&gt;getObject()-&gt;getId())));
    }
  
    public function save($con = null)
    {
      parent::save();
  
      $this-&gt;updateContentItem();
  
      return $this-&gt;object;
    }
  
    protected function updateContentItem()
    {
      // update content item
      if (!is_null($article_content = $this-&gt;getContentItem())) 
      {
  
       $values = $this-&gt;getValues();
       if ( $article_content-&gt;isNew() ) 
       {
           $values['article_id'] = $this-&gt;object-&gt;getId();
       }
  
        $article_content-&gt;fromArray($values, BasePeer::TYPE_FIELDNAME);
  
        $article_content-&gt;save();
      }
     }
  
     protected function getContentItem()
     {
        if (!$this-&gt;object-&gt;getContentItem()) 
        {
          return new ContentItem();
        }
        else
        {
        return $this-&gt;object-&gt;getContentItem();
        }
     }
  </code></pre>
  
  <p>In the admin, this merges the form and i see the contentItemForm and it's fields.
  is_comment is a boolean value and therefore displays a checkbox.
  When I have it checked, it is suppoed to update the is_comment field in the content_item table to 1, unchecked and saved, should be 0.</p>
  
  <p>Unfortunately, this isn't working. The is_comment field is never updated.</p>
  
  <p>Does anyone know what could be causing this?</p>