getPk(); $row->getQuery()->where($pk, $row[$pk])->update(['weigh' => $row[$pk]]); }); } public function product() { return $this->belongsTo('Product', 'product_id', 'id', [], 'LEFT')->setEagerlyType(0); } }