Skip to content

guilherme-cptk/fuel-model-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

FuelPHP Orm Model Generation Task

This is a FuelPHP Task that generates a/multiple Orm Models from a database.

The models are populated with as many properties and other setup as possible (more may be added), unlike oil generate model which only puts in the basics.

If the Task detects that it would be overwriting a file then it prompts you for confirmation, so that you do not loose any models you have already written.

Usage

To generate models for all of the tables in your database. This task currently only works with the MySQLi driver, you can set up a secondary connection on you DB config files and specify the name as 'db_connection'.

php oil refine orm db_connection

To generate a model for just one table

php oil refine orm:generate_model table_name db_connection

About

Generates FuelPHP Orm Models from a database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%