- Renamed update() to queryUpdate()
This commit is contained in:
1 parent
7954d83f52
commit
47aa384c4b
3 files changed
+13
-6
No files matched your search
@@ -43,7 +43,7 @@ trait QueryBuildingTrait
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function update(string $table, string $alias, ? string $schema) : self
|
||||
public function queryUpdate(string $table, string $alias, ? string $schema) : self
|
||||
{
|
||||
$this->queryBuilder->update($this->escapeTable($table), $alias ? $this->escapeIdentifier($alias) : null, $this->escapedDatabase(), $schema);
|
||||
|
||||
@@ -210,7 +210,7 @@ trait QueryBuildingTrait
|
||||
protected function updateSqlQuery(array $dataset) : self
|
||||
{
|
||||
if ( null === $this->queryBuilder->getFragment(Query\Update::class) ) {
|
||||
$this->update($this->entityResolver->tableName(), $this->alias, $this->entityResolver->schemaName());
|
||||
$this->queryUpdate($this->entityResolver->tableName(), $this->alias, $this->entityResolver->schemaName());
|
||||
}
|
||||
|
||||
$this->set($dataset);
|
||||
|
||||
Reference in new issue
Block a user