TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * {@inheritdoc} */ public function rules() { return [ [['store_id', 'updated_at', 'created_at', 'status'], 'integer'], [['store_id'], 'required'], [['down_url'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'updated_at' => 'Updated At', 'created_at' => 'Created At', 'down_url' => 'Down Url', 'status' => 'Status', ]; } }