I want to create EAV entity module. I refer these below links. I want to do the same in Magento 2.
How to do it in Magento 2?
Please help me.
Thanks.
UPDATE:
I can able to save the record in the main table. But, I can't able to store in the eav table.
Eg. : I can able to save in vendorname_modulename_modulename
table. But, I can't able to save record in vendorname_modulename_modulename_varchar
& vendorname_modulename_modulename_text
table.
Best Answer
After understanding your question, Not sure but, it seems like your InstallSchema not create properly with foreign key constraint and you didn't properly assign your attributes name in your ResourceModel file.
Compare this both file with your code.
InstallSchema.php :
HelloWorldSetup.php :
For more, You can take reference from here. It maybe helpful for you.
Reference