title: How to filter a one-to-many getter?
body: <p>I'm making minor amendments to a Symfony 1.4 system. I am not very familiar with Symfony.</p>
  
  <p>The Doctrine model is already set up with a one-to-many getter, but I need to add a filter.  for example, getting Bars from a Foo with <code>Foo-&gt;getBars()</code>, I want to pass a parameter to getBars to filter only X type of Bar, i.e. <code>Foo-&gt;getBars('X');</code></p>
  
  <p>The base class <code>BaseFoo</code> already has this in place in the <code>setUp</code> method</p>
  
  <pre><code>$this-&gt;hasMany('Foo_Bars as Bars', array(
      'local'   =&gt; 'foo_id',
      'foreign' =&gt; 'foo_id'
  ));
  </code></pre>
  
  <p>Apologies for the rather abstract example, but the real object names would possibly make less sense.</p>