title: Saving data to a new row
body: <p>I have an application with CakePHP and I need to insert some row of data to a table. I have followed the tutorial in the CakePHP book but it doesn't work.</p>
  
  <pre><code>$this-&gt;Temporary-&gt;create();
  $this-&gt;Temporary-&gt;set(
      array(
          'Temporary.position_id'=&gt;$employeesAttribute[$arrCount][0]['EmployeeAttribute']['position_id'],
          'Temporary.person_id'=&gt;$employeesAttribute[$arrCount][0]['StatusEmployee']['person_id'],
          'Temporary.job_id'=&gt;$employeesAttribute[$arrCount][0]['Job']['id'],
          'Temporary.unit_id'=&gt;$employeesAttribute[$arrCount][0]['Unit']['id'],
          'Temporary.person_code'=&gt;$employeesAttribute[$arrCount][0]['StatusEmployee']['code'],
          'Temporary.name'=&gt;$employeesAttribute[$arrCount][0]['Person']['first_name'].' '.$employeesAttribute[$arrCount][0]['Person']['middle_name'].' '.$employeesAttribute[$arrCount][0]['Person']['last_name'],
          'Temporary.job'=&gt;$employeesAttribute[$arrCount][0]['Job']['short_desc']
      )
  );
  $this-&gt;Temporary-&gt;save();
  </code></pre>
  
  <p>I have used <code>create()</code> method, set the variable and called the save method but this code doesn't save the data to my table. What is wrong with this code?</p>