Hi,
I'm working on a project that requires a fair bit of inserting/updating rows in MySQL tables using Zend_Form. I'm trying to simplify the insert/update procedure by extending Zend_Db, and it seems a lot of this has been done with Zend_Db_Table and Zend_Db_Table_Row.
However, I can't understand how to link them together in the most efficient way. For example, I have a DB table called companies. I then have a model called CompaniesTable that extends Zend_Db_Table
and a model called CompanyTable that extends Zend_Db_Table_Row
.
I want to be able to query the companies table for rows, insert/update/delete individual companies etc. I see a few sites referring to the DomainModel (http://en.wikipedia.org/wiki/Domain_model) but can't find a good explanation of how to do it in Zend Framework.
Does anyone know of a good tutorial?
Cheers,
Matt