mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 20:48:09 +08:00
fix: 修复一处 ORM 用法问题
This commit is contained in:
parent
1b82201668
commit
271d3a50e3
@ -82,8 +82,7 @@ class PluginWemallGoods extends Abs
|
|||||||
*/
|
*/
|
||||||
public function items(): HasMany
|
public function items(): HasMany
|
||||||
{
|
{
|
||||||
return static::mk()
|
return $this->hasMany(PluginWemallGoodsItem::class, 'gcode', 'code')
|
||||||
->hasMany(PluginWemallGoodsItem::class, 'gcode', 'code')
|
|
||||||
->withoutField('id,status,create_time,update_time')
|
->withoutField('id,status,create_time,update_time')
|
||||||
->where(['status' => 1]);
|
->where(['status' => 1]);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user