Magento Forum

   
What is an Entity in Magento? 
 
yusufnb
Jr. Member
 
Total Posts:  1
Joined:  2008-03-19
 

Hi,

Could you please explain what is an entity for magento? How is a product related to an entity?

Thanks,

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mark_Kimsal
Sr. Member
 
Total Posts:  186
Joined:  2007-09-12
Michigan, USA
 

An “entity” is a core thing that is being modeled.  In Magento, a product might be an entity, but the product’s SKU is not an entity, it is too simple.  It’s like the difference between objects and object properties.  Objects == Entities, and Object Properties == Attributes.

Entities extend Resources and resources are simply connections to the database (actually they manage the different read/write connections and automatically figure out table names based on convention().

So, basically, Entities are “core” things that pair up to some Models and help them save to the database.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top