I am trying to understand syntax for Magento ORM data base access. Can someone help explain the pieces used in this XML config file.
<models>
<modulex>
<class>MynameSpace_Modulex_Model</class>
<resourceModel>modulex_mysql4</resourceModel>
</modulex>
<modulex_mysql4>
<class>MynameSpace_Modulex_Model_Mysql4</class>
<entities>
<blogpost>
<table>my_blog_posts</table>
</blogpost>
</entities>
</modulex_mysql4>
</models>
models - section used to define classes related to database access & business logic
modulex - name of a specific module; Stuff contained within this section is only applicable to module named modulex
resourceModel - indicates a directory or points to XML entity to follow? specific for database access?
modulex_mysql4 - definition of resourceModel used above? why not just put this within modulex section?
class MynameSpace_Modulex_Model - points to location of classes in this module? makes instance of the class?
entities - define resource models in my module
blogpost - name of model (both the file and class in MynameSpace/Modulex/Model)
my_blog_posts - name of sql table.