Skip to content

Commit 23a0e49

Browse files
authored
Change incorrect QueryBuilder to Cycle\Database\Query\SelectQuery (#185)
1 parent 6774b5f commit 23a0e49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/en/query-builder/extended.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ WHERE `id` = 1
242242
Group multiple where conditions using Closure as your first argument:
243243

244244
```php
245-
$select->where('id', 1)->where(function (\Cycle\ORM\Select\QueryBuilder $select) {
245+
$select->where('id', 1)->where(function (\Cycle\Database\Query\SelectQuery $select) {
246246
$select->where('status', 'active')->orWhere('id', 10);
247247
});
248248
```
@@ -259,7 +259,7 @@ WHERE `id` = 1
259259
Boolean joiners are respected:
260260

261261
```php
262-
$select->where('id', 1)->orWhere(function (\Cycle\ORM\Select\QueryBuilder $select) {
262+
$select->where('id', 1)->orWhere(function (\Cycle\Database\Query\SelectQuery $select) {
263263
$select->where('status', 'active')->andWhere('id', 10);
264264
});
265265
```
@@ -334,7 +334,7 @@ $select->where([
334334
Use `@or` and `@and` groups to create where groups:
335335

336336
```php
337-
$select->where(function (\Cycle\ORM\Select\QueryBuilder $select) {
337+
$select->where(function (\Cycle\Database\Query\SelectQuery $select) {
338338
$select->where('id', 'between', 10, 100)->andWhere('name', 'Anton');
339339
})->orWhere('status', 'disabled');
340340
```

0 commit comments

Comments
 (0)