File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 356
356
357
357
After:
358
358
359
+ ``` php
359
360
class MyEntityType extends DoctrineType
360
361
{
361
362
// ...
365
366
return new MyEntityLoader();
366
367
}
367
368
}
369
+ ```
368
370
369
371
* ` Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList ` was
370
372
deprecated and will be removed in Symfony 3.0. You should use
405
407
406
408
Before:
407
409
408
- ```
410
+ ``` php
409
411
CFAD
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
410
412
411
413
$queryBuilder = function () {
416
418
417
419
After:
418
420
419
- ```
421
+ ``` php
420
422
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
421
423
422
424
// create $queryBuilder
@@ -435,15 +437,15 @@ Form
435
437
436
438
Before:
437
439
438
- ```
440
+ ``` php
439
441
$form->add('products', 'entity', array(
440
442
'class' => 'AppBundle/Entity/Product',
441
443
));
442
444
```
443
445
444
446
After:
445
447
446
- ```
448
+ ``` php
447
449
$form->add('products', 'entity', array(
448
450
'class' => 'AppBundle/Entity/Product',
449
451
'choice_translation_domain' => true,
You can’t perform that action at this time.
0 commit comments