Symfony\Bundle\DoctrineBundle\Registry::getEntityManagerNames PHP 메소드

getEntityManagerNames() 공개 메소드

Gets all connection names.
public getEntityManagerNames ( ) : array
리턴 array An array of connection names
    public function getEntityManagerNames()
    {
        return $this->entityManagers;
    }

Usage Example

예제 #1
0
 public function __construct(Registry $registry, DbalLogger $logger = null)
 {
     $this->connections = $registry->getConnectionNames();
     $this->managers = $registry->getEntityManagerNames();
     $this->logger = $logger;
 }