Skip to content

Commit

Permalink
Update associations.md (#771)
Browse files Browse the repository at this point in the history
Modify a phrase to make the sentence more accurate
  • Loading branch information
lijinliangyihao authored Jul 12, 2024
1 parent 218af9e commit b2f8210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/docs/associations.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ db.Select("Account").Delete(&users)

{% note warn %}
**NOTE:**
It's important to note that associations will only be deleted if the primary key of the deleting record is not zero. GORM uses these primary keys as conditions to delete the selected associations.
It's important to note that associations will be deleted only if the primary key of the deleting record is not zero. GORM uses these primary keys as conditions to delete the selected associations.

```go
// This will not work as intended
Expand Down

0 comments on commit b2f8210

Please sign in to comment.