Copied!

SchemaBuilderInterface

SchemaBuilderInterface.php : 16

Doctrine\DBAL\Schema event-driven builder.

Methods

publicbuildSchema()

SchemaBuilderInterface.php : 27

Build schema by dispatching the SchemaBuilderEvent event.

public buildSchema() : Schema

To build schema you should implement EventSubscriber subscribing to SchemaBuilderEvents::BUILD_SCHEMA. The method handling this event accepts single argument of SchemaBuilderEvent type

Return values

Schema

Tags
See
SchemaBuilderEvent
See
SchemaBuilderEvents::BUILD_SCHEMA

publicimportSchemaFromFile()

SchemaBuilderInterface.php : 32

Import Schema from Yaml schema definition file into Schema object.

public importSchemaFromFile(string $schemaFilePath) : Schema

Parameters

Name Type Default value Description
$schemaFilePath string - -

Return values

Schema