Using Zend_CodeGenerator_Php to Automate Creation of Models
Troubled with a very manual and inefficient process of creating models for many database tables, I looked into a way of making this process more automated and efficient. Zend_CodeGenerator_Php was my answer. In a post on my blog I explain how I was able to use Zend_CodeGenerator_Php_Class to create a process that will grab all the tables from my database as well as all the fields for each table and create all the models and db table abstracts for my application with the call of one method.
I hope this post can help others with similar issues looking for a better solution.
“http://www.joeyrivera.com/2009/automate-model-creation-with-zend_codegenerator_php_class/”:http://www.joeyrivera.com/2009/automate-model-creation-with-zend_codegenerator_php_class/


2 comments to “Using Zend_CodeGenerator_Php to Automate Creation of Models”
December 22nd, 2009 at 3:01 am
I’ve also been working with the Code Generator to create my models. I did a screen cast on my tool at http://cmorrell.com/web-development/more-php-modelling-383 . You can get the source (and more) at http://github.com/inxilpro/Galahad-FE/
Chris
January 3rd, 2010 at 3:37 pm
http://code.google.com/p/zend-db-model-generator/