255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'mch_id' => 'Mch ID', 'order_id' => 'Order ID', 'order_detail_id' => 'Order Detail ID', 'user_id' => 'User ID', 'score' => '评分:1=差评,2=中评,3=好', 'content' => '评价内容', 'pic_url' => '评价图片', 'is_show' => '是否显示:0.不显示|1.显示', 'is_virtual' => '是否虚拟用户', 'virtual_user' => '虚拟用户名', 'virtual_avatar' => '虚拟头像', 'virtual_time' => '虚拟评价时间', 'goods_id' => '商品', 'goods_warehouse_id' => '商品库ID', 'reply_content' => '商家回复内容', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'deleted_at' => 'Deleted At', 'is_delete' => 'Is Delete', 'is_anonymous' => '是否匿名', 'is_top' => '是否置顶', 'goods_info' => '规格相关信息', ]; } public function getGoods() { return $this->hasOne(Goods::className(), ['id' => 'goods_id']); } public function getUser() { return $this->hasOne(User::className(), ['id' => 'user_id']); } public function getDetail() { return $this->hasOne(OrderDetail::className(),['id' => 'order_detail_id']); } }