public function convertToDoctrineSchema(Database $database) : \Doctrine\DBAL\Schema\Schema
    {
        $schema = new Schema();

        foreach ($database->getTables() as $table) {
            $this->mapTable($schema, $table);
        }

        return $schema;
    }
public function convertToDoctrineSchema(Database $database) : \Doctrine\DBAL\Schema\Schema
    {
        $schema = new Schema();

        foreach ($database->getTables() as $table) {
            $this->mapTable($schema, $table);
        }

        return $schema;
    }
public function convertToDoctrineSchema ( Database $ database ) : \ Doctrine \ DBAL \ Schema \ Schema { $ schema = new Schema ( ) ; foreach ( $ database -> getTables ( ) as $ table ) { $ this -> mapTable ( $ schema , $ table ) ; } return $ schema ; }
Converts the database to the equivalent doctrine schema.

@param Database $database

@return Schema
Converts the database to the equivalent doctrine schema .