Simple bundle of Symfony2

It can be more simple, in controller something like:
```php
$this->getDoctrine()->getRepository('YourBundle:YourEntity')->findByCategory($categoryObject);
```