DiscoveredReflection deprecated
class DiscoveredReflection extends Object implements IReflection
deprecated
Properties
protected Connection | $connection | ||
protected Cache | $cache | ||
protected array | $structure | ||
protected array | $loadedStructure |
Methods
__destruct()
No description
string|array|null
getPrimary($table)
Returns primary key for table.
array
getHasManyReference($table, $key, $refresh = TRUE)
Returns referenced table & referenced column.
array
getBelongsToReference($table, $key, $refresh = TRUE)
Returns referenced table & referencing column.
reloadAllForeignKeys()
No description
reloadForeignKeys($table)
No description
Details
at line 32
__construct(Connection $connection, IStorage $cacheStorage = NULL)
Create autodiscovery structure.
at line 44
__destruct()
No description
at line 52
string|array|null
getPrimary($table)
Returns primary key for table.
at line 77
array
getHasManyReference($table, $key, $refresh = TRUE)
Returns referenced table & referenced column.
Example: (author, book) returns array(book, author_id)
at line 122
array
getBelongsToReference($table, $key, $refresh = TRUE)
Returns referenced table & referencing column.
Example (book, author) returns array(author, author_id) (book, translator) returns array(author, translator_id)
at line 141
protected
reloadAllForeignKeys()
No description
at line 159
protected
reloadForeignKeys($table)
No description