extends |
AbstractAsset |
|---|
Object representation of a database column.
| Methods | ||
|---|---|---|
public
|
__construct(string $name, Type $type, mixed[] $options = [])
|
# |
public
|
setOptions(mixed[] $options): Column
|
# |
public
|
setType(Type $type): Column
|
# |
public
|
setLength(int|null $length): Column
|
# |
public
|
setPrecision(int $precision): Column
|
# |
public
|
setScale(int $scale): Column
|
# |
public
|
setUnsigned(bool $unsigned): Column
|
# |
public
|
setFixed(bool $fixed): Column
|
# |
public
|
setNotnull(bool $notnull): Column
|
# |
public
|
setDefault(mixed $default): Column
|
# |
public
|
setPlatformOptions(mixed[] $platformOptions): Column
|
# |
public
|
setPlatformOption(string $name, mixed $value): Column
|
# |
public
|
setColumnDefinition(string|null $value): Column
|
# |
public
|
getType(): Type
|
# |
public
|
getLength(): int|null
|
# |
public
|
getPrecision(): int
|
# |
public
|
getScale(): int
|
# |
public
|
getUnsigned(): bool
|
# |
public
|
getFixed(): bool
|
# |
public
|
getNotnull(): bool
|
# |
public
|
getDefault(): mixed
|
# |
public
|
getPlatformOptions(): mixed[]
|
# |
public
|
hasPlatformOption(string $name): bool
|
# |
public
|
getPlatformOption(string $name): mixed
|
# |
public
|
getColumnDefinition(): string|null
|
# |
public
|
getAutoincrement(): bool
|
# |
public
|
setAutoincrement(bool $flag): Column
|
# |
public
|
setComment(string|null $comment): Column
|
# |
public
|
getComment(): string|null
|
# |
public
|
setCustomSchemaOption(string $name, mixed $value): Column
|
# |
public
|
hasCustomSchemaOption(string $name): bool
|
# |
public
|
getCustomSchemaOption(string $name): mixed
|
# |
public
|
setCustomSchemaOptions(mixed[] $customSchemaOptions): Column
|
# |
public
|
getCustomSchemaOptions(): mixed[]
|
# |
public
|
toArray(): mixed[]
|
# |
| Properties | |||
|---|---|---|---|
protected
|
Type
|
$_type
|
# |
protected
|
int|null
|
$_length
|
# |
protected
|
int
|
$_precision = 10
|
# |
protected
|
int
|
$_scale = 0
|
# |
protected
|
bool
|
$_unsigned = false
|
# |
protected
|
bool
|
$_fixed = false
|
# |
protected
|
bool
|
$_notnull = true
|
# |
protected
|
mixed
|
$_default
|
# |
protected
|
bool
|
$_autoincrement = false
|
# |
protected
|
mixed[]
|
$_platformOptions = []
|
# |
protected
|
string|null
|
$_columnDefinition
|
# |
protected
|
string|null
|
$_comment
|
# |
protected
|
mixed[]
|
$_customSchemaOptions = []
|
# |
| Properties inherited from Doctrine\DBAL\Schema\AbstractAsset |
|---|
$_name, $_namespace, $_quoted |