title: symfony2 + doctrine insert value in doctrine
body: <p>I have one table name Blog bellow is it's structure.</p>
  
  <pre><code>FieldName       Type
  Id              int(5)
  blog_title      string(255)
  blog_url        string(255)
  blog_desc       text
  image           string(255)
  tags            string(255)
  blog_created_at Date
  blog_status     string(1)
  </code></pre>
  
  <p>i have created one form for this table in controller.</p>
  
  <pre><code>  public function addAction()
  {
      $entity = new Blog();
  
      $form = $this-&gt;createFormBuilder()
          -&gt;add('blog_title')
          -&gt;add('blog_desc' ,'textarea')
          -&gt;add('blog_url')
          -&gt;add('image')
          -&gt;add('tags')
          -&gt;add('blog_status')
          -&gt;getForm();
  
      $request =  $this-&gt;getRequest();
      if ($request-&gt;getMethod() == 'POST') 
      {
          $form-&gt;bindRequest($request);
          if ($form-&gt;isValid()) 
          {
              $em = $this-&gt;getDoctrine()-&gt;getManager();
               $em-&gt;persist($entity);
               $em-&gt;flush();
              return $this-&gt;redirect($this-&gt;generateUrl('admin_index'));
          }
        }
       return $this-&gt;render('AdminBlogBundle:default:add.html.twig',array(
          'form' =&gt; $form-&gt;createView(),
      )); 
  
  }
  </code></pre>
  
  <p>I want to enter the value of this form to my database but it gives me error of</p>
  
  <pre><code> An exception occurred while executing 'INSERT INTO Blog (blog_title, blog_desc,
    blog_url, image, tags, blog_created_at, blog_status) VALUES (?, ?, ?, ?, ?, ?, ?)'
    with params {"1":null,"2":null,"3":null,"4":null,"5":null,"6":null,"7":null}:
  </code></pre>
  
  <p>all the value which i am posting from the form am getting in object array of request which i m getting bye calling the print_r($request); but while binding it is giving me this error. so pls help me.</p>