Skip to content

Commit

Permalink
Small typo in the Polymorphic many-to-many guide (#3473)
Browse files Browse the repository at this point in the history
  • Loading branch information
winescout committed Nov 9, 2020
1 parent 320e671 commit 80ce4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/howtos/Polymorphic associations with many to many.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ When such a form is submitted in Phoenix, it will send parameters with the follo
```elixir
%{
"todo_list" => %{
"title" => "shipping list",
"title" => "shopping list",
"todo_items" => %{
0 => %{"description" => "bread"},
1 => %{"description" => "eggs"}
Expand Down Expand Up @@ -128,7 +128,7 @@ end

By adding one table per association pair, we keep database references and can efficiently perform queries that relies on indexes.

First let's see how implement this functionality in Ecto using a `has_many :through` and then use `many_to_many` to remove a lot of the boilerplate we were forced to introduce.
First let's see how to implement this functionality in Ecto using a `has_many :through` and then use `many_to_many` to remove a lot of the boilerplate we were forced to introduce.

## Polymorphism with has_many :through

Expand Down

0 comments on commit 80ce4e4

Please sign in to comment.