doctrine/DoctrineModule — pull request #128 by netiul (2012-12-06 11:20:09+00:00)
Title: Allow specifying the find method on ObjectRepository

This is PR is based on https://github.com/doctrine/DoctrineModule/pull/114 and https://github.com/doctrine/DoctrineModule/pull/124.

It extends the find_by functionality for filtering the objects. You can specify the method to call on the repository. This way you can return pretty much anything, when using custom repositories without a dependency on DoctrineORMModule.

```'find_method' => array(
``````'name' => 'findValidRoles',
``````'params' => array(
`````````'criteria' => array('id' => array(28)),
``````),
```),