Update docs/en/02_Developer_Guides/00_Model/02_Relations.md

Co-authored-by: Guy Marriott <guy.the.person@gmail.com>
This commit is contained in:
Manuel Thalmann 2021-05-13 23:19:37 +02:00 committed by GitHub
parent a5e4a5c97d
commit ed50c1b94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ This is declared via array syntax, with the following keys on the many_many:
- `from` Name of the has_one relationship pointing back at the object declaring many_many - `from` Name of the has_one relationship pointing back at the object declaring many_many
- `to` Name of the has_one relationship pointing to the object declaring belongs_many_many. - `to` Name of the has_one relationship pointing to the object declaring belongs_many_many.
Just like in any normal DataObject, you can apply a default sort which will be applied when Just like any normal DataObject, you can apply a default sort which will be applied when
accessing many many through relations. accessing many many through relations.
Note: The `through` class must not also be the name of any field or relation on the parent Note: The `through` class must not also be the name of any field or relation on the parent