OSDN Git Service
(root)
/
invent
/
invent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Добавлен тест модели типов.
[invent/invent.git]
/
models
/
Types.php
diff --git
a/models/Types.php
b/models/Types.php
index
8092994
..
dce3125
100644
(file)
--- a/
models/Types.php
+++ b/
models/Types.php
@@
-35,7
+35,8
@@
class Types extends \yii\db\ActiveRecord
{
return [
[[ 'id' ], 'integer' ],
- [[ 'name' ], 'string', 'max' => 100 ],
+ [[ 'name' ], 'string', 'max' => 100, ],
+ [[ 'name' ], 'required' ],
];
}