We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f8d9dc commit e1855f6Copy full SHA for e1855f6
1 file changed
user_guide_src/source/database/query_builder/116.php
@@ -8,10 +8,10 @@
8
$additionalUpdateField = ['updated_at' => new RawSql('CURRENT_TIMESTAMP')];
9
10
$sql = $builder->table('user')
11
- ->setAlias('u')
+ ->setData($query, null, 'u')
12
->onConstraint('email')
13
->updateFields($additionalUpdateField, true)
14
- ->updateBatch($query);
+ ->updateBatch();
15
/*
16
* Produces:
17
* UPDATE `user`
0 commit comments