doctrine/doctrine2 — pull request #472 by twinh (2012-10-11 14:00:10+00:00)
Title: Fixed empty namespace in generated code when repository class do not have namespace

When we defined a class without namespace for entity repository, just like @Entity(repositoryClass="BugRepository"), EntityRepositoryGenerator will generate the code like blow, which has error statement in namespace definition. So this is mainly added a generateEntityRepositoryNamespace method to generate the correct namespace.Just like what EntityGenerator does
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/EntityGenerator.php#L492

**before**
```php