From 39bafdce99f0e0ef08a5644e68b5a880e7315ad9 Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Tue, 29 Jan 2013 18:20:39 +0100 Subject: [PATCH] [Form] Add reference about prototype_data option --- reference/forms/types/collection.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index 2a975a7f00a..8c9228b5238 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -326,6 +326,17 @@ If you have several collections in your form, or worse, nested collections you may want to change the placeholder so that unrelated placeholders are not replaced with the same value. +prototype_data +~~~~~~~~~~~~~~ + +.. versionadded:: 2.2 + The ``prototype_data`` option was added in Symfony 2.2 + +**type**: ``mixed`` **default**: ``null`` + +This configures the ``data`` option of the prototype form. +This option is useful if you want pre filled fields in the prototype form. + Inherited options -----------------