Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public static function getSubscribedEvents()
{
// Higher priority than core MergeCollectionListener so that this one
// is called before
return array(FormEvents::SUBMIT => array('onBind', 10));
return array(FormEvents::SUBMIT => array('onSubmit', 10));
}

public function onBind(FormEvent $event)
public function onSubmit(FormEvent $event)
{
$collection = $event->getForm()->getData();
$data = $event->getData();
Expand All @@ -45,4 +45,15 @@ public function onBind(FormEvent $event)
$collection->clear();
}
}

/**
* Alias of {@link onSubmit()}.
*
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
* {@link onSubmit()} instead.
*/
public function onBind(FormEvent $event)
{
$this->onSubmit($event);
}
}