[Form] [DoctrineBridge] updated changelogs after #18359
follows #18359.
This commit is contained in:
parent
2f562c87ff
commit
1c8dc9d06b
@ -39,7 +39,10 @@ Form
|
|||||||
'choice_label' => function ($choice) {
|
'choice_label' => function ($choice) {
|
||||||
return strtoupper($choice);
|
return strtoupper($choice);
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Caching of the loaded `ChoiceListInterface` in the `LazyChoiceList` has been deprecated,
|
||||||
|
it must be cached in the `ChoiceLoaderInterface` implementation instead.
|
||||||
|
|
||||||
FrameworkBundle
|
FrameworkBundle
|
||||||
---------------
|
---------------
|
||||||
|
@ -36,6 +36,8 @@ Form
|
|||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Caching of the loaded `ChoiceListInterface` in the `LazyChoiceList` has been removed,
|
||||||
|
it must be cached in the `ChoiceLoaderInterface` implementation instead.
|
||||||
|
|
||||||
FrameworkBundle
|
FrameworkBundle
|
||||||
---------------
|
---------------
|
||||||
|
@ -7,6 +7,8 @@ CHANGELOG
|
|||||||
* added "{{ value }}" message placeholder to UniqueEntityValidator
|
* added "{{ value }}" message placeholder to UniqueEntityValidator
|
||||||
* deprecated `MergeDoctrineCollectionListener::onBind` in favor of
|
* deprecated `MergeDoctrineCollectionListener::onBind` in favor of
|
||||||
`MergeDoctrineCollectionListener::onSubmit`
|
`MergeDoctrineCollectionListener::onSubmit`
|
||||||
|
* deprecated passing `ChoiceListFactoryInterface` as first argument of
|
||||||
|
`DoctrineChoiceLoader`'s constructor
|
||||||
|
|
||||||
3.0.0
|
3.0.0
|
||||||
-----
|
-----
|
||||||
|
@ -24,11 +24,6 @@ use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
|
|||||||
*/
|
*/
|
||||||
class DoctrineChoiceLoader implements ChoiceLoaderInterface
|
class DoctrineChoiceLoader implements ChoiceLoaderInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ChoiceListFactoryInterface
|
|
||||||
*/
|
|
||||||
private $factory;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ObjectManager
|
* @var ObjectManager
|
||||||
*/
|
*/
|
||||||
@ -78,7 +73,6 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface
|
|||||||
|
|
||||||
// Provide a BC layer since $factory has changed
|
// Provide a BC layer since $factory has changed
|
||||||
// form first to last argument as of 3.1
|
// form first to last argument as of 3.1
|
||||||
$this->factory = $manager;
|
|
||||||
$manager = $class;
|
$manager = $class;
|
||||||
$class = $idReader;
|
$class = $idReader;
|
||||||
$objectLoader = $factory;
|
$objectLoader = $factory;
|
||||||
|
@ -10,6 +10,7 @@ CHANGELOG
|
|||||||
* Using callable strings as choice options in `ChoiceType` has been deprecated
|
* Using callable strings as choice options in `ChoiceType` has been deprecated
|
||||||
and will be used as `PropertyPath` instead of callable in Symfony 4.0.
|
and will be used as `PropertyPath` instead of callable in Symfony 4.0.
|
||||||
* implemented `DataTransformerInterface` in `TextType`
|
* implemented `DataTransformerInterface` in `TextType`
|
||||||
|
* deprecated caching loaded choice list in `LazyChoiceList::$loadedList`
|
||||||
|
|
||||||
3.0.0
|
3.0.0
|
||||||
-----
|
-----
|
||||||
|
Reference in New Issue
Block a user