Skip to content

Commit 12f8953

Browse files
committed
Deprecate passing FormTypeInterface to Polycollection
1 parent 5dde53b commit 12f8953

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
1.0.5 (28/04/2016)
2+
3+
* Deprecated passing FormTypeInterfaces to Polycollection, to be removed in 2.0
4+
5+
1.0.4 (26/04/2016)
6+
7+
* Fix misc deprecation warnings with Symfony 2.8+
8+
* Added option to keep script tags in prototypes when rendering new collection rows
9+
10+
1.0.3 (26/11/2015)
11+
12+
* Added indexing by ID for the Polycollection
13+
* Collection helper returns added row when calling addToCollection
14+
115
1.0.2 (29/08/2015)
216

317
* Actually fix deprecation warnings (except CheckboxGrid)

Form/EventListener/ResizePolyFormListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function __construct(array $prototypes, array $options = array(), $allowA
8888
$typeKey = $type;
8989

9090
if ($type instanceof FormTypeInterface) {
91+
@trigger_error(sprintf('Passing type instances to PolyCollection is deprecated since version 1.0.5 and will not be supported in 2.0. Use the fully-qualified type class name instead (%s).', get_class($type)), E_USER_DEPRECATED);
9192
$typeKey = LegacyFormUtil::isFullClassNameRequired() ? get_class($type) : $type->getName();
9293
}
9394

0 commit comments

Comments
 (0)