diff --git a/en/orm/database-basics.rst b/en/orm/database-basics.rst index 453f2b8d51..406dd7f1c9 100644 --- a/en/orm/database-basics.rst +++ b/en/orm/database-basics.rst @@ -431,12 +431,12 @@ CakePHP's database layer will automatically convert our JSON data when creating queries. You can use the custom types you've created by mapping the types in your Table's :ref:`_initializeSchema() method `:: - use Cake\Database\Schema\Table as Schema; + use Cake\Database\Schema\TableSchema; class WidgetsTable extends Table { - protected function _initializeSchema(Schema $schema) + protected function _initializeSchema(TableSchema $schema) { $schema->columnType('widget_prefs', 'json'); return $schema; diff --git a/en/orm/saving-data.rst b/en/orm/saving-data.rst index f2558cb5e3..e85cd71e8c 100644 --- a/en/orm/saving-data.rst +++ b/en/orm/saving-data.rst @@ -1074,12 +1074,12 @@ column Types:: Type::map('json', 'App\Database\Type\JsonType'); // In src/Model/Table/UsersTable.php - use Cake\Database\Schema\Table as Schema; + use Cake\Database\Schema\TableSchema; class UsersTable extends Table { - protected function _initializeSchema(Schema $schema) + protected function _initializeSchema(TableSchema $schema) { $schema->columnType('preferences', 'json'); return $schema;