It’s a bit tedious writing the whole path to the Entity when calling getRepository(). Especially in Symfony2 where it would be Acme\FooBundle\BarEntity. Is it possible to make it so you only have to specify the Entity name?
It’s a bit tedious writing the whole path to the Entity when calling getRepository()
Share
I’m adding a static method to my entities like this:
then