Symfony\Bundle\DoctrineBundle\Registry::getDefaultConnectionName PHP Method

getDefaultConnectionName() public method

Gets the default connection name.
public getDefaultConnectionName ( ) : string
return string The default connection name
    public function getDefaultConnectionName()
    {
        return $this->defaultConnection;
    }

Usage Example

Example #1
0
 public function testGetDefaultConnectionName()
 {
     $container = $this->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
     $registry = new Registry($container, array(), array(), 'default', 'default');
     $this->assertEquals('default', $registry->getDefaultConnectionName());
 }