Many to Many with Zend_Db and Zend_Form




Zend Screencasts: Video Tutorials about the Zend PHP Framework  (iphone) show

Summary: <p>Exposing many-to-many in a practical application took a little more time and effort than I had anticipated. With that in mind, I to use this opportunity to explore how Zend_Form, Zend_Controller and Zend_Db could be integrated. This is the first in a two part set looking at our data model. </p> <p>By the end of the second video, you should have a project that explores the following concepts with Zend_Db:</p> <ul> <li>A user has many tasks (many-to-many)</li> <li>A task has many users (many-to-many)</li> <li>A user has one contact type (one-to-many)</li> <li>A contact type has many users (many-to-one)</li> </ul> <p>Unfortunately, this only gets through setting up the database, CRUD with Tasks and setting up the Many-to-Many classes in Zend_Db. The next video will cover how we can write a Zend_Form that will map the associations between the users and tasks. Enjoy!</p> <p>If you can’t wait till the next video, <a href="http://code.google.com/p/zendcasts/source/browse/#svn/trunk/zc21-many-to-many-with-zend-db">grab the code on google code</a> and play with it firsthand.</p>