Skip to content
Generates FuelPHP Orm Models from a database.
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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.


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
Something went wrong with that request. Please try again.