fix upgrade readme syntax

This commit is contained in:
Tobias Schultze 2015-04-05 23:36:11 +02:00
parent d1be9d04d7
commit 472f534435
1 changed files with 6 additions and 4 deletions

View File

@ -356,6 +356,7 @@ Form
After: After:
```php
class MyEntityType extends DoctrineType class MyEntityType extends DoctrineType
{ {
// ... // ...
@ -365,6 +366,7 @@ Form
return new MyEntityLoader(); return new MyEntityLoader();
} }
} }
```
* `Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList` was * `Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList` was
deprecated and will be removed in Symfony 3.0. You should use deprecated and will be removed in Symfony 3.0. You should use
@ -405,7 +407,7 @@ Form
Before: Before:
``` ```php
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader; use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
$queryBuilder = function () { $queryBuilder = function () {
@ -416,7 +418,7 @@ Form
After: After:
``` ```php
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader; use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
// create $queryBuilder // create $queryBuilder
@ -435,7 +437,7 @@ Form
Before: Before:
``` ```php
$form->add('products', 'entity', array( $form->add('products', 'entity', array(
'class' => 'AppBundle/Entity/Product', 'class' => 'AppBundle/Entity/Product',
)); ));
@ -443,7 +445,7 @@ Form
After: After:
``` ```php
$form->add('products', 'entity', array( $form->add('products', 'entity', array(
'class' => 'AppBundle/Entity/Product', 'class' => 'AppBundle/Entity/Product',
'choice_translation_domain' => true, 'choice_translation_domain' => true,