Zend Model Creator version 1.1
Today I finished up the first public version of Zend Model Creator (ZMC)!
The ZMC is used to create nifty models for Zend Framework to fetch data from a database. Instead of writing these files yourself, you just specify which database you would like to use for your project. ZMC then fetches the information about these tables and creates DTOs and DAOs plus some misc files for you to use. Then its just a matter of calling the static service for each MySQL table, voiala, data is given to you directly with DTO objects for each result.
Example of use:
YourmysqltableService::retrieveYourmysqltables();
Will return an array with a object for each result row.
YourmysqltableService::retrieveYourmysqltable($primary_key);
Will return a object for the given row in "Yourmysqltable" with the id contained in $primary_key.
YourmysqltableService::update(YourmysqltableDTO $yourmysqltable);
Will update the current row of YourmysqltableDTO's values.
More examples and a manual can be found at the labs page for Zend Model Creator!
I would like to thank Fredrik Hellström at Jersey Consulting AB for contributing with inspiration and the first version of the DTOCreatorService which is a part of this release.
