title: Kohana 3 ORM - grouping where conditions with parentheses
body: <p>I'm trying to run a query through the ORM like this:</p>
  
  <pre><code>   SELECT * from table where (fname like 'string%' or lname like 'string%') 
  AND (fname like 'string2%' or lname like 'string2%');
  </code></pre>
  
  <p>Here's what i have so far:</p>
  
  <pre><code>$results = ORM::factory('profiles');
  foreach ($strings as $string) {
      $result-&gt;where('fname', 'like', "$string%");
      $result-&gt;or_where('lname', 'like', "$string%");
  }
  </code></pre>
  
  <p>But this doesn't account for the parentheses.  Any ideas?</p>