$_schema
$_schema : \Cake\Database\Schema\CachedCollection
Schema
Schema Cache.
This tool is intended to be used by deployment scripts so that you can prevent thundering herd effects on the metadata cache when new versions of your application are deployed, or when migrations requiring updated metadata are required.
$_schema : \Cake\Database\Schema\CachedCollection
Schema
__construct(string|\Cake\Datasource\ConnectionInterface $connection)
Constructor
string|\Cake\Datasource\ConnectionInterface | $connection | Connection name to get the schema for or a connection instance |
getSchema(\Cake\Database\Connection $connection) : \Cake\Database\Schema\Collection|\Cake\Database\Schema\CachedCollection
Helper method to get the schema collection.
\Cake\Database\Connection | $connection | Connection object |
If given connection object is not compatible with schema caching
Loading…