質問編集履歴
1
バリデ追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
invalidateになる条件ifは省きます。
|
2
2
|
|
3
3
|
```model
|
4
|
+
|
5
|
+
'test_field' => [
|
6
|
+
|
7
|
+
'checkInList' => [
|
8
|
+
|
9
|
+
'rule' => ['checkInList', 'test_field_list'],
|
10
|
+
|
11
|
+
'message' => 'Before change',
|
12
|
+
|
13
|
+
'allowEmpty' => false,
|
14
|
+
|
15
|
+
],
|
16
|
+
|
17
|
+
],
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
.........
|
4
22
|
|
5
23
|
public function afterValidate()
|
6
24
|
|