ISchemaWrapper
Interface ISchemaWrapper
Tags
Table of Contents
- createTable() : Table
- Creates a new table.
- dropTable() : Schema
- Drops a table from the schema.
- getTable() : Table
- getTableNames() : array
- Gets all table names, prefixed with table prefix
- getTableNamesWithoutPrefix() : array
- Gets all table names
- getTables() : \Doctrine\DBAL\Schema\Table[]
- Gets all tables of this schema.
- hasTable() : bool
- Does this schema have a table with the given name?
Methods
createTable()
Creates a new table.
public
createTable(string $tableName) : Table
Parameters
- $tableName : string
-
Prefix is automatically prepended
Tags
Return values
Table —dropTable()
Drops a table from the schema.
public
dropTable(string $tableName) : Schema
Parameters
- $tableName : string
-
Prefix is automatically prepended
Tags
Return values
Schema —getTable()
public
getTable(string $tableName) : Table
Parameters
- $tableName : string
Tags
Return values
Table —getTableNames()
Gets all table names, prefixed with table prefix
public
getTableNames() : array
Tags
Return values
array —getTableNamesWithoutPrefix()
Gets all table names
public
getTableNamesWithoutPrefix() : array
Tags
Return values
array —getTables()
Gets all tables of this schema.
public
getTables() : \Doctrine\DBAL\Schema\Table[]
Tags
Return values
\Doctrine\DBAL\Schema\Table[] —hasTable()
Does this schema have a table with the given name?
public
hasTable(string $tableName) : bool
Parameters
- $tableName : string
-
Prefix is automatically prepended