O'Reilly logo

Magento 2 Developer's Guide by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we first learned how to create simple model, its resource, and collection class. Then we did the same for an EAV model. Once we had the required model, resource, and collection classes in place, we took a detailed look at the type and flow of schema and data scripts. Going hands-on, we covered InstallSchema, UpgradeSchema, InstallData, and UpgradeData scripts. Once the scripts were run, the database ended up having the required tables and sample data upon which we based our entity CRUD examples. Finally, we took a quick but focused look at collection management, mostly comprising filtering collection to get the desired result set.

The full module code can be downloaded from https://github.com/ajzele/B05032-Foggyline_Office ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required