From 605bc8229c8f3019cab4fb7ca41eb1a844788ca4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 22 Jul 2024 17:52:55 -0500 Subject: [PATCH] =?utf8?q?=E2=9C=8F=EF=B8=8F=20Fix=20typo=20in=20`cascade?= =?utf8?q?=5Fdelete`=20docs=20(#1030)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../relationship-attributes/cascade-delete-relationships.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/relationship-attributes/cascade-delete-relationships.md b/docs/tutorial/relationship-attributes/cascade-delete-relationships.md index 769d94cf..1604b978 100644 --- a/docs/tutorial/relationship-attributes/cascade-delete-relationships.md +++ b/docs/tutorial/relationship-attributes/cascade-delete-relationships.md @@ -503,7 +503,7 @@ FROM team WHERE team.name = ? INFO Engine [generated in 0.00014s] ('Wakaland',) -// Then, because of delete_cascade, right before deleting Wakaland, SQLAlchemy loads the heroes +// Then, because of cascade_delete, right before deleting Wakaland, SQLAlchemy loads the heroes INFO Engine SELECT hero.id AS hero_id, hero.name AS hero_name, hero.secret_name AS hero_secret_name, hero.age AS hero_age, hero.team_id AS hero_team_id FROM hero WHERE ? = hero.team_id @@ -531,7 +531,7 @@ Princess Sure-E not found: None We can configure the database to **set the foreign key** (the `team_id` in the `hero` table) to **`NULL`** when the related record (in the `team` table) is deleted. -In this case, the side with `Relationship()` won't have `delete_cascade`, but the side with `Field()` and a `foreign_key` will have `ondelete="SET NULL"`. +In this case, the side with `Relationship()` won't have `cascade_delete`, but the side with `Field()` and a `foreign_key` will have `ondelete="SET NULL"`. //// tab | Python 3.10+ -- 2.47.2