public function ManagerRegistry::getManagerForClass in Plug 7
Gets the object manager associated with a given class.
Parameters
string $class A persistent object class name.:
Return value
\Doctrine\Common\Persistence\ObjectManager|null
1 method overrides ManagerRegistry::getManagerForClass()
- AbstractManagerRegistry::getManagerForClass in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ AbstractManagerRegistry.php - Gets the object manager associated with a given class.
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ ManagerRegistry.php, line 110
Class
- ManagerRegistry
- Contract covering object managers for a Doctrine persistence layer ManagerRegistry class to implement.
Namespace
Doctrine\Common\PersistenceCode
public function getManagerForClass($class);