Multi word search on multiple columns Symfony Doctrine
<p>I am trying to craft a multiword search that will query multiple columns in a table. My code works great thus far for a single column, but as you can imagine using it for more then one column becomes an issue.</p>

<p>If I add <code>orWhere</code> it won't work, and I don't really want to create more for loops because it will become quite cumbersome. Any Ideas?</p>

<pre><code>$query = $request-&gt;getParameter("article-search");
$keywords = explode(" ", $query);

for( $i = 1; $i &lt;= count( $keywords ); $i++ ){
    $q-&gt;addWhere("a.title LIKE ?", "%" . $keywords[$i - 1] . "%");
}
</code></pre>