TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['id', 'centralize_goods_id', 'cloud_order_id', 'created_at', 'updated_at', 'md_id'], 'integer'] ]; } public function attributeLabels() { return [ 'id' => '', 'centralize_goods_id' => '集采商品表ID', 'md_id' => '门店ID', 'created_at' => '', 'updated_at' => '' ]; } }