We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e24e0e commit f809b33Copy full SHA for f809b33
src/guide/start/databases.md
@@ -294,8 +294,8 @@ final readonly class PageRepository
294
295
public function findOneBySlug(string $slug): ?Page
296
{
297
- $query = (new Query($this->connection))
298
- ->select('*')
+ $query = $this->connection
+ ->select()
299
->from('{{%page}}')
300
->where('slug = :slug', ['slug' => $slug]);
301
@@ -307,8 +307,8 @@ final readonly class PageRepository
307
*/
308
public function findAll(): iterable
309
310
- $data = (new Query($this->connection))
311
+ $data = $this->connection
312
313
->all();
314
0 commit comments