Kévin Weyhaupt

Magento Developer

Currently in an IT formation, I had the opportunity to acquire solid foundation in many domains, including web development. This domain is vast and evolves more and more every day, it will allow me to learn constantly and never get bored. Therefore i chose this specialization because in the world of work if there is one important thing, it’s to love what you do.
My passions are also focused on computing, watching series and playing video games with his “esport” scene.

Kévin Weyhaupt - Magento Developer
Stories written by Kévin Weyhaupt

The recipe for a good Data Model on Magento 2 - Part 1

3/22/2018 - #development #ecommerce #magento

The menu today : realise a good data model for your future projects on Magento 2, eventhough this is not French cuisine, we wanted to offer you our recipe. 

As a recipe, there will be different steps to realise and here is the list of ingredients and preparation to make :

  • Part 1 : preparing the main ingredients
  • Part 2 : adding flavour
  • Part 3 the Chef’s secret

Read more

The recipe for a good Data Model on Magento 2 - Part 2

3/22/2018 - #development #ecommerce #magento

Part 2 : Adding Flavour

At the moment we only have the business-class-model part, we need to add the relation with our datas. To do so, we will create our “resource models”. The resource models enable to link our models with the data base. Here the classes inherite from AbstractDb in order to accomplish some operations before or after different actions on the database, for instance « after/beforeDelete», « after/beforeSave » but above all to define in the constructor the table and the primary key related to our object using the “_init” method.

Read more

The recipe for a good Data Model on Magento 2 - Part 3

3/22/2018 - #development #ecommerce #magento

Part 3 : The chef's touch

The entity manager is available since version 2.1 of Magento. First and foremost I have to bring to your attention that since version 2.2, its use is not recommended by Magento anymore, here is what the framework says about the class “EntityManager” :
“It is not recommended to use the EntityManager and its infrastructure for the Persistence Entities. In the next version a new “PersistenceEntity Manager” will be created in order to cover the needs of the persistence with the API requests for the reading of the datas.”

Read more
Ready
for take-off?

Blackbird is a web agency specialized in the development of eCommerce websites. We are Magento Experts and we offer our services and advice for e-marketing, strategy, branding, deployment and methodology.

Contact
+339 50 66 21 38


Legal terms
Agency 30, Avenue du Rhin
67100 Strasbourg
France
SEE MAP
FR - EN