I am wanting to get values into my asscociated table and and with my code I get the correct output on $this->request->data. I am saving correctly to the timesheets table but no records are saved to the timesheetLessons table. 

The timesheet table has a 1 to many relationship with timesheetLessons.
Looking at the docs I thought I just had to specify the modelname and savAssociated should work but it doesnt.

I have checked the docs and past posts , where past posts refer to another method of simplying avoiding the view. I am sure there is a simple answer as I get the correct data returned.

<http://book.cakephp.org/2.0/en/models/saving-your-data.html>

**Controller**

```
    class TimeSheetsController extends AppController {

      debug( $this->request->data);
           if ($this->request->is('post') ||$this->request->is('put')) {

              $this->TimeSheet->create();
          if (   !$this->request->data['TimeSheet']['tutor_id'])
          {
              $this->request->data['TimeSheet']['tutor_id']=$tutorId;
          }

            if ($this->TimeSheet->saveAssociated($this->request->data)) {

```

**View**

```
   <tr>
            <th>id</th>
            <th>tutor id</th>
            <th>date</th>     
         </tr>

      <?php 
              echo $this->Form->create('TimeSheet');
              echo '<tr>';
       // debug($timesheet['TimeSheet']['tutor_id']);
              echo $this->Form->hidden('TimeSheet.tutor_id');
              echo $this->Form->hidden('TimeSheet.id');
              echo   $this->Form->input('TimeSheet.tutor_name', array('label' => 'Tutor name', 'value'=>$tutor_name)); 
              echo   $this->Form->input('TimeSheet.invoice'); 
              echo   $this->Form->input('TimeSheet.note'); 
              echo   $this->Form->input('TimeSheet.abn'); 

          echo '</tr>';
        foreach ($lesson as $key => $item2):
      //  foreach ($lesson as  $item2):   
               echo '<tr>';
               echo   '<td>'.$item2['Lesson']['id'].'</td>'; 
               echo   '<td>'.$item2['Lesson']['tutor_id'].'</td>'; 
               echo   '<td>'.$item2['Lesson']['lesson_date'].'</td>'; 

               echo $this->Form->hidden('TimesheetLessons.'.$key.'.id',
                            array('value'=>$item2['Lesson']['id']));

               echo $this->Form->hidden('TimesheetLessons.'.$key.'.tutor_id',
                            array('value'=>$item2['Lesson']['tutor_id']));

               echo $this->Form->hidden('TimesheetLessons.'.$key.'.lesson_date',
                            array('value'=>$item2['Lesson']['lesson_date']));
          echo '</tr>';

```

**correct output**

```
array(
    'TimeSheet' => array(
        'tutor_name' => 'teacher2',
        'invoice' => '8',
        'note' => '',
        'abn' => '3242',
        'tutor_id' => '16',
        'id' => '1'
    ),
    'TimesheetLessons' => array(
        (int) 0 => array(
            'id' => '18',
            'tutor_id' => '16',
            'lesson_date' => '2014-10-06'
        ),
        (int) 1 => array(
            'id' => '19',
            'tutor_id' => '16',
            'lesson_date' => '2014-10-13'
        )

```