SchemaMap
in package
Table of Contents
Properties
Methods
- addTable() : $this
- Adds a table to the schema map if it has not already been added
- addTables() : mixed
- getLink() : Joinable|null
- getTableByName() : Table|null
- getTables() : array<string|int, Table>
Properties
$tables
protected
array<string|int, Table>
$tables
= []
Methods
addTable()
Adds a table to the schema map if it has not already been added
public
addTable(Table $table) : $this
Parameters
- $table : Table
Return values
$thisaddTables()
public
addTables(array<string|int, mixed> $tables) : mixed
Parameters
- $tables : array<string|int, mixed>
getLink()
public
getLink(mixed $baseTableName, mixed $targetTableAlias) : Joinable|null
Parameters
- $baseTableName : mixed
- $targetTableAlias : mixed
Tags
Return values
Joinable|null —Link to the target table
getTableByName()
public
getTableByName(mixed $name) : Table|null
Parameters
- $name : mixed
Return values
Table|nullgetTables()
public
getTables() : array<string|int, Table>