$_connection
$_connection : \Cake\Database\Connection
Connection object
Represents a database schema collection
Used to access information about the tables, and other data in a database.
$_connection : \Cake\Database\Connection
Connection object
$_dialect : \Cake\Database\Schema\BaseSchema
Schema dialect instance.
__construct(\Cake\Database\Connection $connection)
Constructor.
\Cake\Database\Connection | $connection | The connection instance. |
describe(string $name, array $options = array()) : \Cake\Database\Schema\TableSchema
Get the column metadata for a table.
Caching will be applied if cacheMetadata
key is present in the Connection
configuration options. Defaults to _cakemodel when true.
forceRefresh
- Set to true to force rebuilding the cached metadata.
Defaults to false.string | $name | The name of the table to describe. |
array | $options | The options to use, see above. |
when table cannot be described.
Object with column metadata.
_reflect(string $stage, string $name, array $config, \Cake\Database\Schema\TableSchema $schema) : void
Helper method for running each step of the reflection process.
string | $stage | The stage name. |
string | $name | The table name. |
array | $config | The config data. |
\Cake\Database\Schema\TableSchema | $schema | The table instance |
on query failure.
Loading…