public function getDatabaseMap($name = null)
    {
        if (null === $name) {
            $name = $this->getDefaultDatasource();
        }
        if (!isset($this->databaseMaps[$name])) {
            $class = $this->databaseMapClass;
            $this->databaseMaps[$name] = new $class($name);
        }

        return $this->databaseMaps[$name];
    }
public function getDatabaseMap($name = null)
    {
        if (null === $name) {
            $name = $this->getDefaultDatasource();
        }
        if (!isset($this->databaseMaps[$name])) {
            $class = $this->databaseMapClass;
            $this->databaseMaps[$name] = new $class($name);
        }

        return $this->databaseMaps[$name];
    }
public function getDatabaseMap ( $ name = null ) { if ( null === $ name ) { $ name = $ this -> getDefaultDatasource ( ) ; } if ( ! isset ( $ this -> databaseMaps [ $ name ] ) ) { $ class = $ this -> databaseMapClass ; $ this -> databaseMaps [ $ name ] = new $ class ( $ name ) ; } return $ this -> databaseMaps [ $ name ] ; }
Get the database map for a given datasource.

The database maps are "registered" by the generated map builder classes.

@param string $name The datasource name

@return \Propel\Runtime\Map\DatabaseMap
Get the database map for a given datasource .