Skip to content

Commit

Permalink
Remove § about prototype_name customization in 2.0
Browse files Browse the repository at this point in the history
I don't think this was even possible in 2.0
  • Loading branch information
Grégoire Paris committed Oct 25, 2012
1 parent 8a347fd commit 6fb4a1b
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions UPGRADE-2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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__'));
Expand Down

0 comments on commit 6fb4a1b

Please sign in to comment.