Skip to content

Commit

Permalink
fix upgrade readme syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Apr 5, 2015
1 parent d1be9d0 commit 472f534
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions UPGRADE-2.7.md
Expand Up @@ -356,6 +356,7 @@ Form

After:

```php
class MyEntityType extends DoctrineType
{
// ...
Expand All @@ -365,6 +366,7 @@ Form
return new MyEntityLoader();
}
}
```

* `Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList` was
deprecated and will be removed in Symfony 3.0. You should use
Expand Down Expand Up @@ -405,7 +407,7 @@ Form

Before:

```
```php
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;

$queryBuilder = function () {
Expand All @@ -416,7 +418,7 @@ Form

After:

```
```php
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;

// create $queryBuilder
Expand All @@ -435,15 +437,15 @@ Form

Before:

```
```php
$form->add('products', 'entity', array(
'class' => 'AppBundle/Entity/Product',
));
```

After:

```
```php
$form->add('products', 'entity', array(
'class' => 'AppBundle/Entity/Product',
'choice_translation_domain' => true,
Expand Down

0 comments on commit 472f534

Please sign in to comment.