title: db_or() in hook_query_TAG_alter?
body: <p>I'm new to Drupal 7, but not to Drupal. I'm afraid, however, that the new database query system is a bit over my head.</p>
  
  <p>I'm attempting to alter a view query using <code>hook_query_TAG_alter()</code>. In essence, I'm attempting to append an OR to the filter, saying "list nodes where the current user is either referenced in a particular_field OR is the author."</p>
  
  <p>I'm attempting to append this last condition (or is the author) do this by adding a <code>db_or()-&gt;condition(…)</code> to the query, but I keep getting a fatal error:  </p>
  
  <blockquote>
    <p>Call to undefined method SelectQuery::db_or() in /Volumes/...</p>
  </blockquote>
  
  <p>It's driving me batshit, because I don't understand this system enough to know why this method is unavailable. Here is my implementation:</p>
  
  <pre><code>function sentinel_network_query_views_networks_alter(QueryAlterableInterface $query) {
    $query-&gt;db_or()-&gt;condition('node.uid', '***CURRENT_USER***', '=');
  }
  </code></pre>