symfony2admingenerator/AdmingeneratorGeneratorBundle — pull request #281 by mikeyudin (2012-11-10 17:16:07+00:00)
Title: Create separate functions for list query builders.  Ensure processScopes function is created.

RE: Issue 276

I have modified the ListBuilderAction templates to separate the query builders from the getQuery() method, allowing users to create a custom query without needing to copy the process filters, sorts, and scopes method calls. So, instead of overwriting the getQuery() method, users just need to overwrite the buildQuery() method like so:

```php
protected function buildQuery()
{
//insert custom code here ...
return $this->getDoctrine()
->getEntityManager()
->createQueryBuilder()
->select('q')
->from('Acme\UserBundle\Entity\User', 'q');
}
```
Additionally, I have modified how the processScopes methods are generated, ensuring that empty methods are generated even if there are no scopes defined in generator.yml.