$additionalCharacteristic->property_id = $characteristic["id"];
}
- $additionalCharacteristic->value_name = $characteristic["value_name"];
+ $additionalCharacteristic->value_name = $characteristic["value"];
if (!$additionalCharacteristic->save()) {
LogService::apiErrorLog(json_encode(["error_id" => 8.2, "error" => $additionalCharacteristic->getErrors()], JSON_UNESCAPED_UNICODE));
}
'id' => $this->primaryKey()->comment('Идентификатор инкрементируемый'), // Auto-incrementing primary key
'product_id' => $this->string()->notNull()->comment('GUID товара'), // GUID of the product
'property_id' => $this->string()->notNull()->comment('ID из product_1c_prop_type'), // Foreign key to property type
- 'value_name' => $this->string()->notNull()->comment('Название свойства, привязанного к продукту и относящегося к данному property_id') // Property name associated with the product
+ 'value' => $this->string()->notNull()->comment('Название свойства, привязанного к продукту и относящегося к данному property_id') // Property name associated with the product
]);
$this->addForeignKey(