Dumplie\Metadata\Infrastructure\Doctrine\Dbal\DoctrineStorage::createTable PHP Method

createTable() private method

private createTable ( Doctrine\DBAL\Schema\Schema $schema, string $schemaName, TypeSchema $type )
$schema Doctrine\DBAL\Schema\Schema
$schemaName string
$type Dumplie\Metadata\Schema\TypeSchema
    private function createTable(DBALSchema $schema, string $schemaName, TypeSchema $type)
    {
        $table = $schema->createTable($this->tableName($schemaName, $type->name()));
        $table->addColumn('id', 'guid');
        $table->setPrimaryKey(['id']);
        foreach ($type->getDefinitions(['id']) as $field => $definition) {
            $this->typeRegistry->map($schemaName, $table, $field, $definition);
        }
    }