Creating Setup script in Magento 2

This is part 1 of two parts article. See part 2 by clicking here. Magento 1’s ORM (object relationship mapper) is still available in Magento 2. That workes on Active Record inspired pattern that uses Model, Resource Model, and Resource Model collection classes. But because of Magento’s new object system we need to create different(…)