TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['id', 'goods_agent_admin_id', 'order_detail_id', 'created_at', 'updated_at', 'status', 'is_need_install', 'order_id', 'order_type'], 'integer'] ]; } }