TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['order_id', 'pool_id', 'is_scan','model_type','store_id','admin_id'], 'integer'], [['desc', 'order_no'], 'string'], [['money','pay_price','rl_rate','mx_rate','total_price','total_pv','before_money','after_money'], 'number'], [['created_at'], 'safe'] ]; } }