I'm making minor amendments to a Symfony 1.4 system. I am not very familiar with Symfony.

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 `Foo->getBars()`, I want to pass a parameter to getBars to filter only X type of Bar, i.e. `Foo->getBars('X');`

The base class `BaseFoo` already has this in place in the `setUp` method

```
$this->hasMany('Foo_Bars as Bars', array(
    'local'   => 'foo_id',
    'foreign' => 'foo_id'
));

```

Apologies for the rather abstract example, but the real object names would possibly make less sense.