Categories


Archives


Recent Posts


Categories


Magento 2: Pestle Now Generates Repositories

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

Carved out some time this weekend to add Repository generating code to pestle’s generate_crud_model command. Now, in addition to creating your standard Magento 2 Model/ResourceModel/Collection objects, you’ll also get a repository for your object with the de-facto standard save, getById, getList, delete, and deleteById methods. Also, per previous posts, we’re correctly applying filtering criteria in the generated repository.

Copyright © Alana Storm 1975 – 2023 All Rights Reserved

Originally Posted: 24th April 2016

email hidden; JavaScript is required