This commit is contained in:
kavalar 2019-06-22 22:17:08 +03:00
parent 0727013ddd
commit f343677f95
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class UseField extends \yii\db\ActiveRecord
return [
[['field_id', 'use'], 'required'],
[['field_id', 'use'], 'integer'],
[['field_id'], 'exist', 'skipOnError' => true, 'targetClass' => AdditionalFields::className(), 'targetAttribute' => ['field_id' => 'id']],
[['field_id'], 'exist', 'skipOnError' => true, 'targetClass' => AdditionalFields::class, 'targetAttribute' => ['field_id' => 'id']],
];
}

View File

@ -14,7 +14,7 @@
},
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"php": ">=7.1.0",
"yiisoft/yii2": "~2.0.6",
"yiisoft/yii2-bootstrap": "~2.0.0",
"yiisoft/yii2-swiftmailer": "~2.0.0 || ~2.1.0",