A “model” is used to store data, and perhaps performs some business logics against that data.so we create model in every Module to Write some Business Logic
A “resource model” is used to interact with the database on behalf of the “model”. The “resource model” actually performs the CRUD operations.
A “collection model” holds from one to many “models” and knows how to tell the “resource model” to get rows in the basis of information it is given.
There’s a basic ActiveRecord-like one-object-one-table Model, and there’s also an Entity Attribute Value (EAV) Model.
Hope this will Help you!
No comments:
Post a Comment
Thankyou for your Comments