ChangeColumn
in package
Table of Contents
- compile() : array<string|int, mixed>
- Compile a change column command into a series of SQL statements.
- calculateDoctrineTextLength() : int
- Calculate the proper column length to force the Doctrine text type.
- getChangedDiff() : TableDiff|bool
- Get the Doctrine table difference for the given changes.
- getDoctrineColumn() : Column
- Get the Doctrine column instance for a column change.
- getDoctrineColumnChangeOptions() : array<string|int, mixed>
- Get the Doctrine column change options.
- getDoctrineColumnType() : Type
- Get the doctrine column type.
- getTableWithColumnChanges() : Table
- Get a copy of the given Doctrine table after making the column changes.
- mapFluentOptionToDoctrine() : string|null
- Get the matching Doctrine option for a given Fluent attribute name.
- mapFluentValueToDoctrine() : mixed
- Get the matching Doctrine value for a given Fluent attribute.
Methods
compile()
Compile a change column command into a series of SQL statements.
public
static compile(Grammar $grammar, Blueprint $blueprint, Fluent $command, Connection $connection) : array<string|int, mixed>
Parameters
- $grammar : Grammar
- $blueprint : Blueprint
- $command : Fluent
- $connection : Connection
Tags
Return values
array<string|int, mixed> —calculateDoctrineTextLength()
Calculate the proper column length to force the Doctrine text type.
protected
static calculateDoctrineTextLength(string $type) : int
Parameters
- $type : string
Return values
int —getChangedDiff()
Get the Doctrine table difference for the given changes.
protected
static getChangedDiff(Grammar $grammar, Blueprint $blueprint, AbstractSchemaManager $schema) : TableDiff|bool
Parameters
- $grammar : Grammar
- $blueprint : Blueprint
- $schema : AbstractSchemaManager
Return values
TableDiff|bool —getDoctrineColumn()
Get the Doctrine column instance for a column change.
protected
static getDoctrineColumn(Table $table, Fluent $fluent) : Column
Parameters
Return values
Column —getDoctrineColumnChangeOptions()
Get the Doctrine column change options.
protected
static getDoctrineColumnChangeOptions(Fluent $fluent) : array<string|int, mixed>
Parameters
- $fluent : Fluent
Return values
array<string|int, mixed> —getDoctrineColumnType()
Get the doctrine column type.
protected
static getDoctrineColumnType(string $type) : Type
Parameters
- $type : string
Return values
Type —getTableWithColumnChanges()
Get a copy of the given Doctrine table after making the column changes.
protected
static getTableWithColumnChanges(Blueprint $blueprint, Table $table) : Table
Parameters
Return values
Table —mapFluentOptionToDoctrine()
Get the matching Doctrine option for a given Fluent attribute name.
protected
static mapFluentOptionToDoctrine(string $attribute) : string|null
Parameters
- $attribute : string
Return values
string|null —mapFluentValueToDoctrine()
Get the matching Doctrine value for a given Fluent attribute.
protected
static mapFluentValueToDoctrine(string $option, mixed $value) : mixed
Parameters
- $option : string
- $value : mixed