From 6d29e56dabbd9d54e10eacc28dbcb8967d0dde7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=AD=20Padr=C3=B3n?= <34191509+alipadron@users.noreply.github.com> Date: Fri, 14 Jun 2024 07:21:01 -0400 Subject: [PATCH] Add issue #175 link in selecting-fields.md --- docs/features/selecting-fields.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/selecting-fields.md b/docs/features/selecting-fields.md index 2ab16d32..9a12451a 100644 --- a/docs/features/selecting-fields.md +++ b/docs/features/selecting-fields.md @@ -51,7 +51,7 @@ QueryBuilder::for(Post::class) // All posts will be fetched including _only_ the name of the author. ``` -⚠️ Keep in mind that the fields query will completely override the `SELECT` part of the query. This means that you'll need to manually specify any columns required for Eloquent relationships to work, in the above example `author.id`. See issue #175 as well. +⚠️ Keep in mind that the fields query will completely override the `SELECT` part of the query. This means that you'll need to manually specify any columns required for Eloquent relationships to work, in the above example `author.id`. See issue [#175](https://github.com/spatie/laravel-query-builder/issues/175) as well. ⚠️ `allowedFields` must be called before `allowedIncludes`. Otherwise the query builder won't know what fields to include for the requested includes and an exception will be thrown.