transfer_to_new_table
This commit is contained in:
1 parent
0955e40eac
commit
0a9600cb00
11 files changed
+45
-28
No files matched your search
@@ -47,7 +47,7 @@ class Company extends \common\models\Company
|
||||
{
|
||||
$post = \Yii::$app->request->post('Company');
|
||||
|
||||
FieldsValue::deleteAll(['company_id' => $this->id]);
|
||||
FieldsValueNew::deleteAll(['item_id' => $this->id, 'item_type' => FieldsValueNew::TYPE_COMPANY]);
|
||||
|
||||
foreach ( $post['fields'] as $item) {
|
||||
$fildsValue = new FieldsValueNew();
|
||||
|
||||
Reference in new issue
Block a user