Skip to content

Commit

Permalink
Merge pull request #312 from asgraf/patch-1
Browse files Browse the repository at this point in the history
Compatibility with non-table models
  • Loading branch information
ADmad authored Jan 14, 2023
2 parents 7d50bde + a15b853 commit 34b090d
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 34b090d

Please sign in to comment.