[Form] Removed exception in Button::setData(): setData() is now always called for all elements in the

form tree during the initialization of the tree
This commit is contained in:
Bernhard Schussek 2013-08-22 14:19:04 +02:00
parent b9a37703a6
commit 07d14e5ff2

View File

@ -200,7 +200,8 @@ class Button implements \IteratorAggregate, FormInterface
*/
public function setData($modelData)
{
throw new BadMethodCallException('Buttons cannot have data.');
// called during initialization of the form tree
// noop
}
/**