| @@ 36-44 (lines=9) @@ | ||
| 33 | /** |
|
| 34 | * @inheritdoc |
|
| 35 | */ |
|
| 36 | public function rules() |
|
| 37 | { |
|
| 38 | return [ |
|
| 39 | [['contragent_id'], 'required'], |
|
| 40 | [['contragent_id', 'country_id', 'city_id'], 'integer'], |
|
| 41 | [['address'], 'string'], |
|
| 42 | [['zip_code'], 'string', 'max' => 255], |
|
| 43 | ]; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @inheritdoc |
|
| @@ 54-62 (lines=9) @@ | ||
| 51 | /** |
|
| 52 | * @inheritdoc |
|
| 53 | */ |
|
| 54 | public function rules() |
|
| 55 | { |
|
| 56 | return [ |
|
| 57 | [['description', 'code'], 'string'], |
|
| 58 | [['code'], 'required'], |
|
| 59 | [['name'], 'string', 'max' => 255], |
|
| 60 | [['position'], 'integer'] |
|
| 61 | ]; |
|
| 62 | } |
|
| 63 | ||
| 64 | public function behaviors() |
|
| 65 | { |
|