У меня проблема с функцией обновления, она говорит, что column updated_at является неоднозначным, и это так. как я могу сделать update_at в product.updated_at. моя ошибка.laravel pivot update column ambigious
мой звонок для обновления: $ product-> attributes() -> wherePivot ('id', $ attribute ['id']) -> update ($ input);
моя ошибка: SQLSTATE [23000]: Integrity нарушение ограничения: 1052 Колонка 'updated_at' в списке полей неоднозначна (SQL:.. Обновление attributes
внутреннее соединение attribute_product
на attributes
id
= attribute_product
attribute_id
установить sku
= TEST, model
= , attribute_product
. name
= Цвет, unitprice
= 10.00, 20.00 = sellprice
, discount
= 0, active
= 0, ordering
= 1, updated_at
= 2015-03-25 2:44:01, где attribute_product
. product_id
= 1 и attribute_product
. id
= 1)