8000 fix upgrade readme syntax · symfony/symfony@472f534 · GitHub
[go: up one dir, main page]

Skip to content

Commit 472f534

Browse files
committed
fix upgrade readme syntax
1 parent d1be9d0 commit 472f534

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

UPGRADE-2.7.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ Form
356356

357357
After:
358358

359+
```php
359360
class MyEntityType extends DoctrineType
360361
{
361362
// ...
@@ -365,6 +366,7 @@ Form
365366
return new MyEntityLoader();
366367
}
367368
}
369+
```
368370

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

406408
Before:
407409

408-
```
410+
```php
409411 CFAD
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
410412

411413
$queryBuilder = function () {
@@ -416,7 +418,7 @@ Form
416418

417419
After:
418420

419-
```
421+
```php
420422
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
421423

422424
// create $queryBuilder
@@ -435,15 +437,15 @@ Form
435437

436438
Before:
437439

438-
```
440+
```php
439441
$form->add('products', 'entity', array(
440442
'class' => 'AppBundle/Entity/Product',
441443
));
442444
```
443445

444446
After:
445447

446-
```
448+
```php
447449
$form->add('products', 'entity', array(
448450
'class' => 'AppBundle/Entity/Product',
449451
'choice_translation_domain' => true,

0 commit comments

Comments
 (0)
0