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
其他信息
- 授权协议: Unknown
- 更新时间: 2024-11-28