Skip to content

Commit

Permalink
Docs: add missing word 'key' in embeds_many (#4343)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuneKelly authored Dec 23, 2023
1 parent b26b25b commit b1bd912
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ecto/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1783,10 +1783,10 @@ defmodule Ecto.Schema do
maps are represented as JSON which allows Ecto to choose what works best).
The embedded may or may not have a primary key. Ecto uses the primary keys
to detect if an embed is being updated or not. If a primary is not present
and you still want the list of embeds to be updated, `:on_replace` must be
set to `:delete`, forcing all current embeds to be deleted and replaced by
new ones whenever a new list of embeds is set.
to detect if an embed is being updated or not. If a primary key is not
present and you still want the list of embeds to be updated, `:on_replace`
must be set to `:delete`, forcing all current embeds to be deleted and
replaced by new ones whenever a new list of embeds is set.
For encoding and decoding of embeds, please read the docs for
`embeds_one/3`.
Expand Down

0 comments on commit b1bd912

Please sign in to comment.