From 90735fb3a7def60aba3a4eb6322bfb1a1c57375a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 9 Nov 2019 16:22:42 +0100 Subject: [PATCH] CHANGELOG --- CHANGELOG.md | 2 ++ Documentation/AssociationsBasics.md | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8c632953..85105049c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,8 @@ GRDB adheres to [Semantic Versioning](https://semver.org/), with one expection: The [Update Requests](README.md#update-requests) chapter documents the new support for batch updates introduced in the [query interface](README.md#the-query-interface). +The [Associations Guide](Documentation/AssociationsBasics.md) has gained a new [Ordered Associations](Documentation/AssociationsBasics.md#ordered-associations) chapter which explains how to defined ordered HasMany and HasManyThrough associations. + ## 4.5.0 diff --git a/Documentation/AssociationsBasics.md b/Documentation/AssociationsBasics.md index 3dc944e93..f44ad1196 100644 --- a/Documentation/AssociationsBasics.md +++ b/Documentation/AssociationsBasics.md @@ -23,7 +23,7 @@ GRDB Associations - [Combining Associations] - [Filtering Associations] - [Sorting Associations] - - [Ordered vs. Unordered Associations] + - [Ordered Associations] - [Columns Selected by an Association] - [Table Aliases] - [Refining Association Requests] @@ -766,7 +766,7 @@ Fetch requests do not visit the database until you fetch values from them. This - [Combining Associations] - [Filtering Associations] - [Sorting Associations] -- [Ordered vs. Unordered Associations] +- [Ordered Associations] - [Columns Selected by an Association] - [Table Aliases] - [Refining Association Requests] @@ -1111,7 +1111,7 @@ let request = Book Those extra sorting options require **[Table Aliases]**, introduced below. -## Ordered vs. Unordered Associations +## Ordered Associations By default, **[HasMany]** or **[HasManyThrough]** associations are unordered: the order of associated records is undefined unless [explicitly specified](#sorting-associations) on each request. @@ -2366,7 +2366,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. [HasOneThrough]: #hasonethrough [Choosing Between BelongsTo and HasOne]: #choosing-between-belongsto-and-hasone [Self Joins]: #self-joins -[Ordered vs. Unordered Associations]: #ordered-vs-unordered-associations +[Ordered Associations]: #ordered-associations [The Types of Associations]: #the-types-of-associations [FetchableRecord]: ../README.md#fetchablerecord-protocols [migration]: ../README.md#migrations