public function setAdapter($name, AdapterInterface $adapter)
    {
        $this->adapters[$name] = $adapter;
        $this->adapterClasses[$name] = get_class($adapter);
    }
public function setAdapter($name, AdapterInterface $adapter)
    {
        $this->adapters[$name] = $adapter;
        $this->adapterClasses[$name] = get_class($adapter);
    }
public function setAdapter ( $ name , AdapterInterface $ adapter ) { $ this -> adapters [ $ name ] = $ adapter ; $ this -> adapterClasses [ $ name ] = get_class ( $ adapter ) ; }
Set the adapter for a given datasource.

@param string                                   $name    The datasource name
@param \Propel\Runtime\Adapter\AdapterInterface $adapter
Set the adapter for a given datasource .