One to Many with Zend_Db




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

Summary: <p>This is part 3 in the Zend_Db series. I’m only scratching the surface with what you can do with Zend_Db_Table classes, however starting is often the hardest part. I’ve posted the code once again on the Google code for this episode, so <a href="http://code.google.com/p/zendcasts/source/browse/#svn/trunk/ep20-one-to-many-with-zend-db">please don’t be shy and grab a copy</a>.</p> <p>There’s a lot of discussion over where and how I’m using the model in the comments, and I have a feeling that as I keep doing this, some of my controversial design decisions (whether out of ignorance, which I’ll gladly acknowledge, or professional experience) might start to surface. I’m really hoping to do a series of similar videos with <a href="http://www.doctrine-project.org">Doctrine</a>, since I find their solution to database persistence really elegant. If anyone has any suggestions, or would like access to the Google code, I would love to open up the discussion and find the “best practices” here. Personally, I would start by moving our custom made form to Zend_Form and adding some much needed validation to the project.</p> <p>Lastly, I need to apologize for the delay, this week has been quite full due to work and personal commitments. I’m going to keep the video a week schedule as best I can. The video also deals with setting up the MySQL database, if this isn’t interesting, skip to the 12 minute mark.</p>