We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9276447 commit a85e1f2Copy full SHA for a85e1f2
src/MultipleInputColumn.php
@@ -10,7 +10,7 @@
10
11
use yii\base\InvalidConfigException;
12
use yii\base\Model;
13
-use yii\db\ActiveRecord;
+use yii\db\ActiveRecordInterface;
14
use yii\helpers\Html;
15
use unclead\widgets\components\BaseColumn;
16
@@ -76,9 +76,10 @@ private function getInputNamePrefix()
76
private function hasModelAttribute($name)
77
{
78
$model = $this->widget->model;
79
+
80
if ($model->hasProperty($name)) {
81
return true;
- } elseif ($model instanceof ActiveRecord && $model->hasAttribute($name)) {
82
+ } elseif ($model instanceof ActiveRecordInterface && $model->hasAttribute($name)) {
83
84
} else {
85
return false;
0 commit comments