title: Cakephp correct way to update multiple child
body: <p>In my case question object has multiple answers. This is question array. </p>
  
  <pre><code>Array
  (
      [Question] =&gt; Array
          (
              [id] =&gt; 15
              [questionary_id] =&gt; 11
              [type] =&gt; MULTIPLE
              [body] =&gt; What activity do you do?
              [is_deleted] =&gt; 
          )
  
      [Answer] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [id] =&gt; 8
                      [question_id] =&gt; 15
                      [body] =&gt; Basketball
                      [is_correct] =&gt; 1
                  )
  
              [1] =&gt; Array
                  (
                      [id] =&gt; 9
                      [question_id] =&gt; 15
                      [body] =&gt; Softball
                      [is_correct] =&gt; 1
                  )
  
              [2] =&gt; Array
                  (
                      [id] =&gt; 10
                      [question_id] =&gt; 15
                      [body] =&gt; Snooker
                      [is_correct] =&gt; 0
                  )
  
          )
  )
  </code></pre>
  
  <p>Now i want remove Softball, rename snooker as shoker and add cricket as new answer. Following array will after save the question.  </p>
  
  <pre><code>Array
  (
      [Question] =&gt; Array
          (
              [id] =&gt; 15
              [questionary_id] =&gt; 11
              [type] =&gt; MULTIPLE
              [body] =&gt; What activity do you do?
              [is_deleted] =&gt; 
          )
  
      [Answer] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [id] =&gt; 8
                      [question_id] =&gt; 15
                      [body] =&gt; Basketball
                      [is_correct] =&gt; 1 
                  )            
  
              [1] =&gt; Array
                  (
                      [id] =&gt; 10
                      [question_id] =&gt; 15
                      [body] =&gt; Shoker
                      [is_correct] =&gt; 0
                  )
  
              [2] =&gt; Array
                  (
                      [id] =&gt; 15
                      [question_id] =&gt; 15
                      [body] =&gt; Cricket
                      [is_correct] =&gt; 0
                  )
  
          )
  )
  </code></pre>
  
  <p>What is the best way to do that. I can remove all answers and add new answers. Is cackphp has some feather to that?</p>