255], [['created_at', 'updated_at', 'deleted_at'], 'safe'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'mch_id' => 'Mch ID', 'printer_id' => '打印机id', 'block_id' => '模板id', 'is_attr' => '0不使用规格 1使用规格', 'big' => '倍数', 'type' => '打印方式', 'show_type' => '显示方式', 'status' => '是否启用', 'is_delete' => '删除', 'order_send_type' => '订单发货方式', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'deleted_at' => 'Deleted At', ]; } public function getPrinter() { return $this->hasOne(Printer::className(), ['id' => 'printer_id']); } public function getStore() { return $this->hasOne(Store::className(), ['id' => 'store_id']); } }