symfony/symfony — Issue #3361: Generated Doctrine2 Repositories do not match docs location
Author: breerly
Created: 2012-02-15 04:15:48+00:00
State: open

When generating a Doctrine 2 repository as a result of the `app/console doctrine:generate:entity` command the created classes look something like so:

```
MyBundle\Entity\Foo
MyBundle\Entity\FooRepository
```

However, the docs listed [here](http://symfony.com/doc/current/book/doctrine.html#custom-repository-classes) show the structure as:

```
MyBundle\Entity\Foo
MyBundle\Repository\Foo
```

We should be consistent as to which way is recommended and update either the docs or the command.