You are here

public function AbstractManagerRegistry::getManagers in Plug 7

Gets an array of all registered object managers.

Return value

\Doctrine\Common\Persistence\ObjectManager[] An array of ObjectManager instances

Overrides ManagerRegistry::getManagers

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php, line 222

Class

AbstractManagerRegistry
Abstract implementation of the ManagerRegistry contract.

Namespace

Doctrine\Common\Persistence

Code

public function getManagers() {
  $dms = array();
  foreach ($this->managers as $name => $id) {
    $dms[$name] = $this
      ->getService($id);
  }
  return $dms;
}