| Methods | ||
|---|---|---|
public
|
__construct(Connection|Sql|Model $source)
|
# |
public
|
getConnection(): Connection
|
# |
protected
|
getDatabasePlatform(): AbstractPlatform
|
# |
protected
|
createSchemaManager(): AbstractSchemaManager
|
# |
protected
|
fixAbstractAssetName<T is AbstractAsset>(T $abstractAsset, string $name): T
|
# |
public
|
table(string $tableName): self
|
# |
public
|
getCreatedTableNames(): array<int, string>
|
# |
public
|
create(): self
|
# |
public
|
drop(bool $dropForeignKeysFirst = false): self
|
# |
public
|
dropIfExists(bool $dropForeignKeysFirst = false): self
|
# |
protected
|
stripDatabaseFromTableName(string $tableName): string
|
# |
public
|
field(string $fieldName, array<string, mixed> $options = []): self
|
# |
public
|
id(string $name = 'id', array<string, mixed> $options = []): self
|
# |
public
|
setModel(Model $model): Model
|
# |
protected
|
getReferenceField(Field $field): ?Field
|
# |
protected
|
resolvePersistenceField(Field $field): ?Field
|
# |
protected
|
resolveRelationDirection(Reference|Join $relation): array{Field, Field}
|
# |
public
|
isTableExists(string $tableName): bool
|
# |
protected
|
fixTableNameForListMethod(string $tableName): string
|
# |
public
|
isIndexExists(list<Field> $fields, bool $requireUnique): bool
|
# |
public
|
createIndex(list<Field> $fields, bool $isUnique): void
|
# |
public
|
createForeignKey(Reference|Join|array{Field, Field} $relation): void
|
# |
| Constants | ||
|---|---|---|
public
|
REF_TYPE_NONE = 0
|
# |
public
|
REF_TYPE_LINK = 1
|
# |
public
|
REF_TYPE_PRIMARY = 2
|
# |
| Properties | |||
|---|---|---|---|
private
|
Connection
|
$_connection
|
# |
public
|
Table
|
$table
|
# |
private
|
array<int, string>
|
$createdTableNames = []
|
# |