Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

A simple prototype for Domain Model and Data Mapper generation from Zend_Db_Table_Abstract objects.

Notifications You must be signed in to change notification settings

lenore-corbeaux/Zend_Db-ModelGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ModelGenerator

This project is a simple prototype of DomainModel and DataMapper generation from Zend_Db_Table_Abstract objects.

Please don't use this prototype in production environment : the generator himself and the models generated aren't fully tested.

Usage

Simply copy the library/ and scripts/ dirs into your project's root.

Ensure you're application.ini is on application/configs/ dir, then run :

php scripts/generateModels.php -e environment -p /path/to/generate/models

This script will :

  • Connect to the database.
  • List all the tables (this might causes case issues in Windows environment with MySQL).
  • Generate DbTable object for every tables.
  • Generate Model and Mapper object for every DbTable.

Type :

php scripts/generateModels.php --help

For more informations.

About

A simple prototype for Domain Model and Data Mapper generation from Zend_Db_Table_Abstract objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages