Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Magento PHP Developer????s Guide, 2nd Edition
  • Table Of Contents Toc
Magento PHP Developer????s Guide, 2nd Edition

Magento PHP Developer????s Guide, 2nd Edition

By : MacGregor
2 (4)
close
close
Magento PHP Developer????s Guide, 2nd Edition

Magento PHP Developer????s Guide, 2nd Edition

2 (4)
By: MacGregor

Overview of this book

This book is written for PHP developers who are familiar with frameworks such as Zend or CakePHP and want to start developing and working with Magento. No prior knowledge of Magento is required.
Table of Contents (11 chapters)
close
close
10
Index

Magento Model anatomy

As we learned in the previous chapter, Magento data models are used to manipulate and access the data. The model layer is divided into two fundamental types, simple models and EAV:

  • Simple models: These model implementations are a simple mapping of one object to one table, meaning our object attributes match each field and our table structure.
  • Entity Attribute Value models: This type of models, known as EAV models, are used to describe entities with a dynamic number of attributes.

Note

It is important to clarify that not all Magento models extend or make use of the ORM. Observers are a clear example of simpler model classes that are not mapped to a specific database table or entity.

In addition to that, each Model type is formed by the following layers:

  • Model class: This is where most of our business logic resides. Models are used to manipulate the data, but they don't access it directly.
  • Resource Model class: Resource Models are used to interact with the database on...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Magento PHP Developer????s Guide, 2nd Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon