You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ class MergeDoctrineCollectionListener implements EventSubscriberInterface
29
29
{
30
30
// Keeps BC. To be removed in 4.0
31
31
private$bc = true;
32
+
private$bcLayer = false;
32
33
33
34
publicstaticfunctiongetSubscribedEvents()
34
35
{
@@ -45,11 +46,13 @@ public static function getSubscribedEvents()
45
46
46
47
publicfunctiononSubmit(FormEvent$event)
47
48
{
48
-
// If onBind() is overridden then logic has been executed
49
49
if ($this->bc) {
50
50
@trigger_error('The onBind() method is deprecated since version 3.1 and will be removed in 4.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
51
51
52
-
return;
52
+
if (!$this->bcLayer) {
53
+
// If onBind() is overridden then logic has been executed
0 commit comments