Php Yijra:将NULL写入Blob
在我的Lumen应用程序中,我使用Yija库来处理Oracle数据库中BLOB数据的编辑,但我很难将BLOB值设置为NULL 我的模型:Php Yijra:将NULL写入Blob,php,eloquent,Php,Eloquent,在我的Lumen应用程序中,我使用Yija库来处理Oracle数据库中BLOB数据的编辑,但我很难将BLOB值设置为NULL 我的模型: class MyModel extends Model { ... protected $fillable = [ 'Column1', 'Column2', 'MyBlob', 'updated_by', ]; protected $binaries = [
class MyModel extends Model
{
...
protected $fillable = [
'Column1',
'Column2',
'MyBlob',
'updated_by',
];
protected $binaries = [
'MyBlob',
];
}
在我的控制器中,我尝试使用以下Yijra函数重置Blob:
DB::table(MyModel->getTable())->where('id', 1)
->updateLob(['Column1' => 'some value'], ['MyBlob' => null], 'id');
但我的Blob列不会更新,也不会触及旧值
有没有一种方法可以通过Yijra实现这一点