Skip to content

Commit 2727c85

Browse files
authored
Merge pull request #8109 from cakephp/fix-schema-mapping
Fix incorrect code in database-basics.
2 parents 8098d64 + 37430b8 commit 2727c85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

en/orm/database-basics.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,10 @@ following::
547547
{
548548
public function getSchema(): TableSchemaInterface
549549
{
550-
$this->getSchema()->setColumnType('widget_prefs', 'json');
550+
$schema = parent::getSchema();
551+
$schema->columnType('widget_prefs', 'json');
552+
553+
return $schema;
551554
}
552555
}
553556

0 commit comments

Comments
 (0)