title: Update Batch error, need to use set to update
body: <p>I'm trying to update multiple rows in a table. I get this error:</p>
  
  <p><strong>You must use the "set" method to update an entry.</strong></p>
  
  <p>Basically I want to be able to update admin rights for all users that are in a form, pulled from a table.</p>
  
  <p>Or what if the users are not in the table how can I insert the if the checkbox is checked? Thanks.</p>
  
  <p>View.php</p>
  
  <pre><code> &lt;? foreach ($users as $user){ ?&gt;
      &lt;h3&gt;&lt;?= $user['username']?&gt;&lt;/h3
      &lt;input style="display:none;" type="text" name="userid[]" id="userid" value=&lt;?=$user['user_id']?&gt;" /&gt;
      &lt;input type="checkbox" name="isAdmin[]" id="isAdmin"/&gt;
   &lt;? }?&gt;
  </code></pre>
  
  <p>Controller.php</p>
  
  <pre><code>public function permissions()
  {   
  $i = 0;
  $j = 0;
  foreach ($this-&gt;input-&gt;post('userid') as $row){
      $data[$i++]['userid'] = $row;
  }
  
  foreach ($this-&gt;input-&gt;post('isAdmin') as $row){
      $private = convertBooleanToInt($row);
      $data[$j++]['isAdmin'] = $private;
  }  
  
      $this-&gt;admin_model-&gt;update_admin($data);
  }
  </code></pre>
  
  <p>And the Model.php</p>
  
  <pre><code>function update_admin()
      {
          $this-&gt;db-&gt;update_batch('user_roles', $data, 'user');
      }
  </code></pre>
  
  <p>I did a var dump and this is what I get.</p>
  
  <p>array(2) { [0]=> array(2) { ["user"]=> string(1) "1" ["role"]=> int(1) } [1]=> array(1) { ["user"]=> string(1) "2" } }</p>