改名
This commit is contained in:
@@ -38,6 +38,9 @@ trait QueryTrait
|
||||
public string $alias = 't1';
|
||||
public array $filter = [];
|
||||
|
||||
|
||||
public bool $lock = false;
|
||||
|
||||
public bool $ifNotWhere = false;
|
||||
|
||||
|
||||
@@ -83,6 +86,17 @@ trait QueryTrait
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param bool $lock
|
||||
* @return $this
|
||||
*/
|
||||
public function lock(bool $lock): static
|
||||
{
|
||||
$this->lock = $lock;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $whereRaw
|
||||
* @return QueryTrait
|
||||
|
||||
Reference in New Issue
Block a user