Skip to content

Commit

Permalink
Replaced TableSchemaInterface with SchemaInterface
Browse files Browse the repository at this point in the history
Compatibility with non-table models
  • Loading branch information
asgraf authored Jan 12, 2023
1 parent 7d50bde commit a15b853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/View/Helper/CrudViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace CrudView\View\Helper;

use Cake\Database\Schema\TableSchemaInterface;
use Cake\Datasource\EntityInterface;
use Cake\Datasource\SchemaInterface;
use Cake\Utility\Inflector;
use Cake\Utility\Text;
use Cake\View\Helper;
Expand Down Expand Up @@ -388,9 +388,9 @@ public function currentModel(): string
/**
* Get model schema.
*
* @return \Cake\Database\Schema\TableSchemaInterface
* @return \Cake\Datasource\SchemaInterface
*/
public function schema(): TableSchemaInterface
public function schema(): SchemaInterface
{
return $this->getViewVar('modelSchema');
}
Expand Down

0 comments on commit a15b853

Please sign in to comment.