From 6fb4a1bbdc480134950cedb795267fd765ad8cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Thu, 25 Oct 2012 10:13:53 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20=C2=A7=20about=20prototype=5Fname=20cu?= =?UTF-8?q?stomization=20in=202.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don't think this was even possible in 2.0 --- UPGRADE-2.1.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index b68afe82327f..a10b6dec3e84 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -423,19 +423,10 @@ * 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_name' => '__proto__'));