I'm trying to add a custom attribute to order
entity.
I managed to add a column to sales_order
, but I cannot save any value while placing the order.
I tracked down the problem in: Magento\Framework\Api\DataObjectHelper::_setDataValues
where my custom column is excluded beacause it is not in the OrderInterface
.
Is there any way to add it?
How do custom attributes work in Magento 2?