Skip to content

Commit

Permalink
docs: Added one-to-one-relations.md & many-to-one-one-to-many-relatio…
Browse files Browse the repository at this point in the history
…ns.md cascades link (#6406)

* docs: one-to-one-relations.md cascades link

* docs: many-to-one-one-to-many-relations.md cascades link
  • Loading branch information
tajpouria committed Jul 16, 2020
1 parent c9f184e commit afc62fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/many-to-one-one-to-many-relations.md
Expand Up @@ -102,7 +102,7 @@ photo2.user = user;
await connection.manager.save(photo2);
```

With cascades enabled you can save this relation with only one `save` call.
With [cascades](https://github.com/typeorm/typeorm/blob/master/docs/relations.md#cascades) enabled you can save this relation with only one `save` call.

To load a user with photos inside you must specify the relation in `FindOptions`:

Expand Down
2 changes: 1 addition & 1 deletion docs/one-to-one-relations.md
Expand Up @@ -82,7 +82,7 @@ user.profile = profile;
await connection.manager.save(user);
```

With cascades enabled you can save this relation with only one `save` call.
With [cascades](https://github.com/typeorm/typeorm/blob/master/docs/relations.md#cascades) enabled you can save this relation with only one `save` call.

To load user with profile inside you must specify relation in `FindOptions`:

Expand Down

0 comments on commit afc62fd

Please sign in to comment.