User Model::saveAll() to save hasMany association

In view

<?php
  echo $form->create('Phone', array('action'=>'save'));
 
  for($i=0; $i<3; $i++)
  {
    echo $form->input('Phone.'.$i.'.number');                                                                                      
  }
  echo $form->submit('Save');
  echo $form->end();
?>  

Here is how the Controller see the phone data after users filled the fileds and clicked on the Save button :

[PhoneNumber] => Array
  (
    [0] => Array
      (
          [id] => 1
          [phone_number] => (123)456-7569
      )
 
    [1] => Array
      (
          [id] => 2
          [phone_number] => (123)456-3333
      )
 
    [2] => Array
      (
          [id] => 3
          [phone_number] => (123)456-4444
      )
  )

In the Controller, you have to use Model::saveAll() to save telephone data.

$this->PhoneNumber->saveAll($this->data['PhoneNumber'])