public function getConnection($type = Propel::CONNECTION_READ)
    {
        $databaseName = constant($this->getPeerClass() . '::DATABASE_NAME');

        return Propel::getConnection($databaseName, $type);
    }
public function getConnection($type = Propel::CONNECTION_READ)
    {
        $databaseName = constant($this->getPeerClass() . '::DATABASE_NAME');

        return Propel::getConnection($databaseName, $type);
    }
public function getConnection ( $ type = Propel :: CONNECTION_READ ) { $ databaseName = constant ( $ this -> getPeerClass ( ) . '::DATABASE_NAME' ) ; return Propel :: getConnection ( $ databaseName , $ type ) ; }
Get a connection object for the database containing the elements of the collection

@param string $type The connection type (Propel::CONNECTION_READ by default; can be Propel::connection_WRITE)

@return PropelPDO A PropelPDO connection object
Get a connection object for the database containing the elements of the collection