アットウィキロゴ

コメントのモデルを作る


>cd "c:\Program Files\xampp\htdocs"

~中略~

Please select a class to Bake:(M/V/C)
>M

~中略~

Enter a number from the list above, or type in the name of anither model.
>2 ←コメントを作成

~中略~

Post belongsTo Category?(y/n)
[y]>y ←投稿へ参照があるので「y」を指定。

Would you like to define some additional model associations?(y/n)
[y]>n ←これ以上の関連はないので「n」を指定。

-----------------------------------------------------------------
The following model will be created:
-----------------------------------------------------------------
Model Name:       Comment
DB Connection:    default
Model Table:      comments
Validation:       Array
(
    [post_id] => VALID NOT EMPTY
    [name] => VALID NOT EMPTY
    [comment] => VALID NOT EMPTY
)
Associations:
          Comment belongsTo Post

-----------------------------------------------------------------

~以下略~
最終更新:2007年05月15日 19:10