title: Call to a member function set() on a non-object error looping through array
body: <p>Working in CI 2.1.0 and getting  a "Call to a member function set() on a non-object..." error with the code excerpt looping through the array below. Seemingly it's an array of all strings so I'm having trouble seeing why it seems to fail in the middle.</p>
  
  <p>Any insights as to what's going on would be great. Researched other questions on this error, but still at a loss.</p>
  
  <pre><code>Code excerpt:
  foreach($data['jobs'] as $job)
  {
  foreach($job as $key=&gt;$value){
    $job-&gt;set($key,$value);
  
  }
  
  }
  </code></pre>
  
  <p>$data['jobs'] array:</p>
  
  <pre><code>    Array ( [0] =&gt; Array ( [job_id] =&gt; 149 [company] =&gt; Minnesota Life Insurance [location] =&gt; Barrington, IL [start_date] =&gt; March '98 [end_date] =&gt; June '98 [description] =&gt;
  Primary responsibility was research and design of sales and training presentations.
  Responsible for scheduling a three person sales and training staff.
  [title] =&gt; Administrative Secretary [resume_id] =&gt; 96 [order_id] =&gt; 0 [profile_id] =&gt; 38 [user_id] =&gt; 1 [vanity_name] =&gt; Sample of Template 3 [template_id] =&gt; 3 [date_add] =&gt; 0000-00-00 00:00:00 [date_mod] =&gt; 2012-03-04 11:00:05 ) [1] =&gt; Array ( [job_id] =&gt; 150 [company] =&gt; Manpower Temporary Services [location] =&gt; Naperville, IL [start_date] =&gt; Dec' 04 [end_date] =&gt; June '98 [description] =&gt;
  Assigned to GE Silicones in the industrial sales division.
  Responsible for analysis of monthly, weekly, and, daily sales reports.
  Responsible for scheduling training classes, seminars, and conferences
  [title] =&gt; Independent Contractor [resume_id] =&gt; 96 [order_id] =&gt; 1 [profile_id] =&gt; 38 [user_id] =&gt; 1 [vanity_name] =&gt; Sample of Template 3 [template_id] =&gt; 3 [date_add] =&gt; 0000-00-00 00:00:00 [date_mod] =&gt; 2012-03-04 11:00:05 ) [2] =&gt; Array ( [job_id] =&gt; 151 [company] =&gt; KSMR Radio 92.5/94.3FM [location] =&gt; Winona, MN [start_date] =&gt; May '96 [end_date] =&gt; May '97 [description] =&gt;
  In charge of a 36 member staff, as well as a 7 member management team, with duties that include disciplinary actions, budgeting, special requests, program scheduling, and hiring.
  Balancing a $15,000 dollar budget, as well as chairing a committee to receive a grant for increasing station amenities such as wattage, equipment, space, and music library.
  [title] =&gt; General Manager [resume_id] =&gt; 96 [order_id] =&gt; 2 [profile_id] =&gt; 38 [user_id] =&gt; 1 [vanity_name] =&gt; Sample of Template 3 [template_id] =&gt; 3 [date_add] =&gt; 0000-00-00 00:00:00 [date_mod] =&gt; 2012-03-04 11:00:05 ) ) 
  </code></pre>