On the Zend Developer Zone today there's a pointer to a new blog post from Joey Rivera about automating the creation of models in your Zend Framework application via the Zend_CodeGenerator_Php_Class.
This tool has to do a good bit of database manipulation so I've decided I'll build it in PHP using Zend Framework. I'll be using Zend_Db_Table_Abstract to communicate with the db tables from my project and I'll be creating a model for each table as well to store and manipulate data. I'll be working with lots of tables in the database and many have lots of fields.
Because the component lets you dynamically create PHP code, it can easily be used to create the model classes. Joey includes a link to the code you can use to add it into your own projects.