diff --git a/src/Model/Table/SoftDeleteTrait.php b/src/Model/Table/SoftDeleteTrait.php index 88a4675..34e27e7 100644 --- a/src/Model/Table/SoftDeleteTrait.php +++ b/src/Model/Table/SoftDeleteTrait.php @@ -22,7 +22,7 @@ public function getSoftDeleteField() $field = 'deleted'; } - if ($this->schema()->column($field) === null) { + if ($this->getSchema()->getColumn($field) === null) { throw new MissingColumnException( __('Configured field `{0}` is missing from the table `{1}`.', $field,