title: CakePHP2 posting empty at add.ctp
body: <p>(EDITED) </p>
  
  <p>At my <code>http://host/MyCake/index.php/table/add</code>, a form with 10 inputs (fields), when submit, I have </p>
  
  <pre><code>Error: SQLSTATE[23502]: Not null violation: 7 
      ERROR: null value in column "revista_id" violates not-null constraint
  SQL Query: 
      INSERT INTO "fasciculos" ("created", "modified", "user_id") VALUES ('now()', 'now()', 1)
  </code></pre>
  
  <p>Well, about "Not null violation" (field <code>revista_id</code>) I try changing SQL with <code>ALTER COLUMN revista_id DROP NOT NULL</code> (remove the constraint), and change was ok, it runs!  BUT, the <strong>problem</strong> is: *<em>where the other 10 fields at the SQL INSERT?</em>!!</p>
  
  <p>Yes, when I changed, the submited data record are empty, all 10 fields was NULL.</p>
  
  <hr>
  
  <p>I am using PostgreSQL 9.X.</p>
  
  <p>I also checked with var_dump at the FasciculoController if the posted data was there, and, yes, it is there,</p>
  
  <pre><code>public function add() {
      if ($this-&gt;request-&gt;is('post')) {
          $this-&gt;Fasciculo-&gt;create();
          var_dump($this-&gt;request-&gt;data); // showing below 
          if ($this-&gt;Fasciculo-&gt;save($this-&gt;request-&gt;data)) // bug here!
                      ...
               }...
      ...}
  </code></pre>
  
  <p>The vardump have all POST data,</p>
  
  <pre><code>  array(1) {  
       ["Fasciculos"]=&gt;array(11) {  
           ["other_id"]=&gt; string(3) "540" 
           //... all data here ...
       }
    }
  </code></pre>