- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know this might have been answered before but I am unable to find it. I want to have a step by step documentation of creating custom EAV based model in magento 2. I looked into catalog and customer setup files. But I find it difficult to grasp. Any help will be thankful for creating custom EAV based model in magento 2.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recomend to read " Magento 2 Developer’s Guide" by Branko Ajzele. The author shows the creating of module FoggylineOffice and this module required custom EAV model for Employee domain objects.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Creating EAV based model in Magento 2
I would never try that by hand. It was complicated in Magento 1, it is much more complicated in Magento 2. Have a look at the available code generators, perhaps one of them can create EAV models.
In fact, during 8 years of Magento development, I've never really seen the need to use EAV for my custom models.
Code Generators I know:
- https://github.com/astorm/pestle/
- https://github.com/staempfli/magento2-code-generator
- https://mage2gen.com/
- https://github.com/Krifollk/magento2-code-generator
- https://github.com/netz98/n98-magerun2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Creating EAV based model in Magento 2
@Skynin wrote:I recomend to read " Magento 2 Developer’s Guide" by Branko Ajzele. The author shows the creating of module FoggylineOffice and this module required custom EAV model for Employee domain objects.
Thanks a lot for the solution. I could get the free code for chapter 8. Will update the same when I try some.