I have created a module in Magento 2 which has EAV structured tables.
Created the tables and attributes by Install Schema. But I am not able to save values in to these tables.
My tables are
- custom_entity
entity_id | attribute_set_id | type_id | customer_id |created_at | updated_at
- ustom_entity_varchar
entity_id | attribute_id | store_id | value_id | value
Can any one please provide me the code to save the values to the tables specified above?
Best Answer
There many links available for CRUD magento 2, below link is explain excellent. You can refer this link. I assuming, you have created Model.
Below controller code will save values in table.