title: ZF2 + Doctrine2 - Form & Bind Entity - Params Null
body: <p>While working on one of my ZF2 controller, I got this error:</p>
  
  <pre><code>Doctrine\DBAL\DBALException
  File: /var/www/microweb2/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:47
  Message: An exception occurred while executing 'INSERT INTO quotes (name, email, phone_number, budget, content, date_posted, service_id) VALUES (?, ?, ?, ?, ?, ?, ?)' with params [null, null, null, null, null, null, null]:
  
  SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null
  </code></pre>
  
  <p>Well, this seems like a pretty basic error but I can't find the solution. The process is this: I create my form to display it, then I bind it with an entity <code>Application\Entity\Quote</code>. Then I set my hydrator with a <code>DoctrineHydrator</code>. If the request is <code>POST</code>, I set my form values with the request values and I validate them with InputFilter. Unfortunately, if the <code>isValid()</code> return <code>true</code>, the DB return the error... WHY THE VALUES ARE NULL?</p>
  
  <p>Here's my controller code: <a href="http://pastebin.com/JVK5xE9r" rel="nofollow">http://pastebin.com/JVK5xE9r</a></p>
  
  <p>Here's my entity: <a href="http://pastebin.com/NhtaBNW9" rel="nofollow">http://pastebin.com/NhtaBNW9</a></p>
  
  <p>Here's my <code>AbstractEntity</code>: <a href="http://pastebin.com/s4L7Cquu" rel="nofollow">http://pastebin.com/s4L7Cquu</a></p>
  
  <p>Here's my form: <a href="http://pastebin.com/t7Kmzfk5" rel="nofollow">http://pastebin.com/t7Kmzfk5</a></p>
  
  <p>Here's my <code>AbstractForm</code>: <a href="http://pastebin.com/36WeyKBf" rel="nofollow">http://pastebin.com/36WeyKBf</a></p>
  
  <p><em>There's too much code to include it in the question.</em></p>
  
  <p>The <code>get()</code> methods works for entities, and <code>set()</code> also. But that's the only problem I have! So I would like to know why.</p>
  
  <p>If anyone can tell me why it doesn't work, it would be nice!</p>