http://book.cakephp.org/2.0/ja/models/data-validation.html
public
$validate
=
array
(
'user_id'
=>
array
(
'notempty'
=>
array
(
'rule'
=>
array
(
'multiple'
),
'message'
=>
'担当者は必ず1人以上選択してください'
,
//'allowEmpty' => false,
//'required' => false,
//'last' => false, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
),
);
0 件のコメント:
コメントを投稿