cancel
Showing results for 
Search instead for 
Did you mean: 

How to save values in Custom EAV table - Magento 2

How to save values in Custom EAV table - Magento 2

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
1. custom_entity
entity_id | attribute_set_id | type_id | customer_id |created_at | updated_at
2. custom_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?