Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
How do I generate a model for existing tables?
frocco
April 2015
I am porting an app over to fuel, but since the tables already exist, is there a method to generate models based on existing tables?
Harro
April 2015
There is a task called 'fromdb' which allows model generation from existing db tables.
php oil g fromdb -h
frocco
April 2015
Thanks Harro,
Can you specify a table or does it do the whole db?
Is fromdb in the docs, I cannot find it.
frocco
April 2015
Just tried it, I do not see the syntax for it in the help
frocco
April 2015
I found it on google.
php oil r fromdb:scaffold products
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
frocco
April 2015
Harro
April 2015