diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index 02ae5ea3a387..a10b6dec3e84 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -423,22 +423,13 @@ * In the collection type's template, the default name of the prototype field has changed from `$$name$$` to `__name__`. - For custom names, dollar signs are no longer prepended and appended. You are - advised to prepend and append two underscores wherever you specify a value - for the field's "prototype_name" option. - - Before: - - ``` - $builder->add('tags', 'collection', array('prototype' => 'proto')); - - // results in the name "$$proto$$" in the template - ``` - - After: + You can now customize the name of the prototype field by changin the + "prototype_name" option. You are advised to prepend and append two + underscores wherever you specify a value for the field's "prototype_name" + option. ``` - $builder->add('tags', 'collection', array('prototype' => '__proto__')); + $builder->add('tags', 'collection', array('prototype_name' => '__proto__')); // results in the name "__proto__" in the template ```