2013-11-28から1日間の記事一覧

【CakePHP1.3】1対多(hasMany)のアソシエーションを設定する

Userが複数のCommentを持っている array( 'className' => 'Comment', 'foreignKey' => 'user_id', 'conditions' => array('Comment.status' => '1'), 'order' => 'Comment.created DESC', 'limit' => '5', 'dependent' => true ) ); } ?…