Copied!

SchemaImporterInterface

SchemaImporterInterface.php : 18

Import database schema from custom Yaml Doctrine Schema format into Schema object.

Methods

publicimportFromFile()

SchemaImporterInterface.php : 30

Import database schema into \Doctrine\DBAL\Schema from file containing custom Yaml format.

public importFromFile(string $schemaFilePath[, Schema|null $targetSchema = null ]) : Schema

Parameters

Name Type Default value Description
$schemaFilePath string - -
$targetSchema Schema|null null

existing schema to import into, if not given, an empty one will be created

Return values

Schema

imported schema

Tags
Throws
InvalidConfigurationException
Throws
DBALException

publicimportFromSource()

SchemaImporterInterface.php : 42

Import database schema into \Doctrine\DBAL\Schema from string containing custom Yaml format.

public importFromSource(string $schemaDefinition[, Schema|null $targetSchema = null ]) : Schema

Parameters

Name Type Default value Description
$schemaDefinition string - -
$targetSchema Schema|null null

existing schema to import into, if not given, an empty one will be created

Return values

Schema

imported schema

Tags
Throws
InvalidConfigurationException
Throws
DBALException