public function AbstractManagerRegistry::getManagers in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php \Doctrine\Common\Persistence\AbstractManagerRegistry::getManagers()
Gets an array of all registered object managers.
Return value
\Doctrine\Common\Persistence\ObjectManager[] An array of ObjectManager instances
Overrides ManagerRegistry::getManagers
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ AbstractManagerRegistry.php, line 222
Class
- AbstractManagerRegistry
- Abstract implementation of the ManagerRegistry contract.
Namespace
Doctrine\Common\PersistenceCode
public function getManagers() {
$dms = array();
foreach ($this->managers as $name => $id) {
$dms[$name] = $this
->getService($id);
}
return $dms;
}