title: What's the difference between ->save() and ->saveAll() in CakePHP
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4516481/what-is-the-difference-between-save-and-saveall-function-in-cakephp">What is the difference between save and saveAll function in cakephp?</a>  </p>
  </blockquote>
  
  
  
  <pre><code> 66 if (!empty($this-&gt;data)) {
   67             $count = 1;
   68             foreach($this-&gt;data['Images'] as $entry){
   69                 $file_name = "file" . $count;      
   70                 if ($data_s = $this-&gt;Uploader-&gt;upload($file_name)) {    
   71                  $this-&gt;Image-&gt;saveAll($data_s);
   72                  }
   73                  $count++;
   74              }
   75             
   76             }
  </code></pre>
  
  <p>$data_s is an array of different info and each time I would use save() but it would only save 1 array from that whole foreach loop in the database. When I have used saveAll(), it saved all the entries from all the arrays.</p>
  
  <p>I am kind of confused about the difference between save() and saveAll() and why it works that way?</p>