public function setConnection($name, ConnectionInterface $connection)
    {
        $manager = new ConnectionManagerSingle();
        $manager->setConnection($connection);
        $this->setConnectionManager($name, $manager);
    }
public function setConnection($name, ConnectionInterface $connection)
    {
        $manager = new ConnectionManagerSingle();
        $manager->setConnection($connection);
        $this->setConnectionManager($name, $manager);
    }
public function setConnection ( $ name , ConnectionInterface $ connection ) { $ manager = new ConnectionManagerSingle ( ) ; $ manager -> setConnection ( $ connection ) ; $ this -> setConnectionManager ( $ name , $ manager ) ; }
Shortcut to define a single connection for a datasource.

@param string $name The datasource name
@param \Propel\Runtime\Connection\ConnectionInterface A database connection
Shortcut to define a single connection for a datasource .