Once again such methods should not exists as doctrine already provide helpers to make this kind of request that are already **tested** and this method is not.

```php
$repository->findBy(array('recordId' => $recordId));
```