mage/db2 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mage/db2

最新稳定版本:1.0.8

Composer 安装命令:

composer require mage/db2

包简介

Magento 2 module to load Laravel Eloquent with Magento

README 文档

README

composer require mage/db2

If you have any conflicts, you can use:

composer require mage/db2 --with-all-dependencies --ignore-platform-reqs --prefer-source --no-scripts

use Mage\DB2\DB2;

$isReturningCustomer = DB2::table('sales_order') ->where('customer_id', $customerId) ->where('entity_id', '<', $entityId) ->exists();


DB2::table('sales_order')->where('customer_id', 123)->get();


Query product images with product details using DB2:
        $images = DB2::table('catalog_product_entity_media_gallery as main_table')
            ->join(
                'catalog_product_entity_media_gallery_value as mgv',
                'mgv.value_id',
                '=',
                'main_table.value_id'
            )
            ->join(
                'catalog_product_entity as e',
                'e.entity_id',
                '=',
                'mgv.entity_id'
            )
            ->select([
                'main_table.value_id',
                'main_table.attribute_id',
                'main_table.value',
                'main_table.media_type',
                'main_table.disabled',
                'e.sku'
            ])
            ->where('main_table.media_type', '=', 'image')
            ->where('main_table.disabled', '=', 0)
            ->orderBy('main_table.value_id', 'ASC')
            ->get();

统计信息

  • 总下载量: 108
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-11-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固