Structure
class Structure
internal |
Cached reflection of database structure.
Properties
protected | $structure | ||
protected | $isRebuilt |
Methods
array
getTables()
No description
array
getColumns(string $table)
No description
string|array|null
getPrimaryKey(string $table)
No description
string|null
getPrimaryAutoincrementKey(string $table)
No description
string|null
getPrimaryKeySequence(string $table)
No description
array|null
getHasManyReference(string $table, string|null $targetTable = null)
No description
array|null
getBelongsToReference(string $table, string|null $column = null)
No description
void
rebuild()
No description
bool
isRebuilt()
No description
void
needStructure()
No description
array
loadStructure()
No description
string|array|null
analyzePrimaryKey(array $columns)
No description
void
analyzeForeignKeys(array $structure, string $table)
No description
string
resolveFQTableName(string $table)
No description
Details
at line 26
__construct(Engine $engine, Cache $cache)
No description
at line 33
array
getTables()
No description
at line 40
array
getColumns(string $table)
No description
at line 52
string|array|null
getPrimaryKey(string $table)
No description
at line 60
string|null
getPrimaryAutoincrementKey(string $table)
No description
at line 90
string|null
getPrimaryKeySequence(string $table)
No description
at line 115
array|null
getHasManyReference(string $table, string|null $targetTable = null)
No description
at line 136
array|null
getBelongsToReference(string $table, string|null $column = null)
No description
at line 153
void
rebuild()
No description
at line 160
bool
isRebuilt()
No description
at line 166
protected void
needStructure()
No description
at line 176
protected array
loadStructure()
No description
at line 209
protected string|array|null
analyzePrimaryKey(array $columns)
No description
at line 228
protected void
analyzeForeignKeys(array $structure, string $table)
No description
at line 247
protected string
resolveFQTableName(string $table)
No description