amic 4 mesiacov pred
rodič
commit
8cab05dcd1
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      models/base/TopSlider.php

+ 1 - 0
models/base/TopSlider.php

@@ -30,6 +30,7 @@ class TopSlider extends \yii\db\ActiveRecord
     public function rules()
     {
         return [
+			[['post_id', 'published_from', 'published_to'], 'required'],
             [['post_id', 'is_active'], 'integer'],
             [['published_from', 'published_to'], 'safe'],
         ];