From b1bd91213afdcccad5b0367e0c038a44c487d5d6 Mon Sep 17 00:00:00 2001 From: June Kelly Date: Sat, 23 Dec 2023 09:32:17 +0000 Subject: [PATCH] Docs: add missing word 'key' in `embeds_many` (#4343) --- lib/ecto/schema.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ecto/schema.ex b/lib/ecto/schema.ex index a8bca5798c..9ade365664 100644 --- a/lib/ecto/schema.ex +++ b/lib/ecto/schema.ex @@ -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`.