Skip to content

Commit

Permalink
Table::_initializeSchema is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nojimage committed May 1, 2024
1 parent b0c5fa6 commit eea6d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_app/TestApp/Model/Table/WorkTimesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public function initialize(array $config): void
/**
* @inheritDoc
*/
protected function _initializeSchema(TableSchemaInterface $schema): TableSchemaInterface
public function getSchema(): TableSchemaInterface
{
parent::_initializeSchema($schema);
$schema = parent::getSchema();

$schema->setColumnType('rest', 'time_interval');
$schema->setColumnType('rest_seconds', 'time_interval_int');
Expand Down

0 comments on commit eea6d41

Please sign in to comment.