Skip to content

Commit 7a92ae2

Browse files
committed
Remove use of setAlias()
1 parent 5e8532e commit 7a92ae2

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tests/system/Database/Live/DeleteTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ public function testDeleteBatch()
7676
];
7777

7878
$this->db->table('user')
79-
->setAlias('data')
80-
->setData($data)
79+
->setData($data, null, 'data')
8180
->onConstraint(['id' => 'userid', 'name' => 'username'])
8281
->deleteBatch();
8382

user_guide_src/source/database/query_builder/118.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
],
2222
];
2323

24-
$builder->setAlias('del')->where('del.qty >', 1)->deleteBatch($data, 'order, line');
25-
26-
// OR
27-
$builder
28-
->setData($data, true, 'del')
24+
$builder->setData($data, true, 'del')
2925
->onConstraint('order, line')
3026
->where('del.qty >', 1)
3127
->deleteBatch();

0 commit comments

Comments
 (0)