add_clone_button

This commit is contained in:
SoHardKI
2019-07-26 12:32:43 +03:00
3 changed files with 35 additions and 4 deletions

View File

@ -13,6 +13,7 @@ use Yii;
* @property int $item_type
* @property int $order
* @property string $value
* @property string $option
*/
class FieldsValueNew extends \yii\db\ActiveRecord
{
@ -36,7 +37,7 @@ class FieldsValueNew extends \yii\db\ActiveRecord
return [
[['field_id', 'item_id', 'item_type'], 'required'],
[['field_id', 'item_id', 'item_type', 'order'], 'integer'],
[['value'], 'string'],
[['value', 'type_file'], 'string'],
];
}
@ -52,6 +53,7 @@ class FieldsValueNew extends \yii\db\ActiveRecord
'item_type' => 'Item Type',
'order' => 'Order',
'value' => 'Value',
'type_file' => 'Приложение'
];
}