From f252a313613bd30166db7356b13f84d4b568eff2 Mon Sep 17 00:00:00 2001 From: Timur Murtukov Date: Wed, 19 Feb 2020 17:29:59 +0100 Subject: [PATCH 1/2] Update index.md --- docs/validation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/validation/index.md b/docs/validation/index.md index 098bd9f36..bd372af06 100644 --- a/docs/validation/index.md +++ b/docs/validation/index.md @@ -131,7 +131,7 @@ the case of **Mutation**, this bundle creates an object **per each field** (`cre case of the **DateInput**, it creates an object for the entire type. Keep in mind that objects are not created recursively by default. As you can see, the argument `createdAt` has its -validation set to `cascade`. It is a special value, which degelates the validation to the embedded type by doing the +validation set to `cascade`. It is a special value, which delegates the validation to the embedded type by doing the following: - covert the subtype (`DateInput`) into an object. - embed the resulting object into its parent, making it a sub-object. From 7c4719fc8f901de80f22db392a674a28dad281bb Mon Sep 17 00:00:00 2001 From: Timur Murtukov Date: Wed, 19 Feb 2020 17:33:47 +0100 Subject: [PATCH 2/2] Update docs/validation/index.md --- docs/validation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/validation/index.md b/docs/validation/index.md index bd372af06..963b82b89 100644 --- a/docs/validation/index.md +++ b/docs/validation/index.md @@ -133,7 +133,7 @@ case of the **DateInput**, it creates an object for the entire type. Keep in mind that objects are not created recursively by default. As you can see, the argument `createdAt` has its validation set to `cascade`. It is a special value, which delegates the validation to the embedded type by doing the following: - - covert the subtype (`DateInput`) into an object. + - convert the subtype (`DateInput`) into an object. - embed the resulting object into its parent, making it a sub-object. - apply to it the [`Valid`](https://symfony.com/doc/current/reference/constraints/Valid.html) constraint (for a recursive validation).