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 (typeorm#6406)

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

* docs: many-to-one-one-to-many-relations.md cascades link
  • Loading branch information
tajpouria authored and Svetlozar committed Jan 12, 2021
1 parent 0e0587c commit 64317ab
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 64317ab

Please sign in to comment.