PHPOOPSymfony
SymfonyDoctrineEntityManagerDependencyInjectionDIPOOP
##
`@doctrine` `Doctrine\Bundle\DoctrineBundle\Registry` EntityManagerRepository
$em = $doctrine->getManagerForClass(get_class($entity));
$repository = $em->getRepository(get_class($entity));
$entityList = $repository->findBy
EntityManagerRepository `@doctrine`
Repository
* Doctrine Repository
## scope
`scope` `container` `prototype` `prototype`
* How to Work with Scopes (The Symfony CookBook)