LoginSignup
8
7

More than 5 years have passed since last update.

FuelPHPのoilコマンドで既存テーブルからmodelを作成

Last updated at Posted at 2016-06-07

ORMモデルの場合

$ php oil r fromdb:model (テーブル名)

CRUDモデルの場合

$ php oil r fromdb:model (テーブル名) --crud

※一度実行するとファイルが作成されるので、上書きしたい場合は、
コマンド「php oil r fromdb:model」の後にオプション「-f」を付ける必要がある

8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7