Open pawaclawczyk opened 10 years ago
The following methods in Form were deprecated and will be removed in Symfony 2.3:
Form
getTypes
getErrorBubbling
getNormTransformers
getClientTransformers
getAttribute
hasAttribute
getClientData
getChildren
hasChildren
bindRequest
Before:
$form->getErrorBubbling()
After:
$form->getConfig()->getErrorBubbling();
The method getClientData has a new equivalent that is named getViewData. You can access all other methods on the FormConfigInterface object instead.
getViewData
FormConfigInterface
Instead of getChildren and hasChildren, you should now use all and count.
all
count
if ($form->hasChildren()) {
if (count($form) > 0) {
Instead of bindRequest, you should now simply call bind:
bind
$form->bindRequest($request);
$form->bind($request);
The following methods in
Form
were deprecated and will be removed in Symfony 2.3:getTypes
getErrorBubbling
getNormTransformers
getClientTransformers
getAttribute
hasAttribute
getClientData
getChildren
hasChildren
bindRequest
Before:
After:
The method
getClientData
has a new equivalent that is namedgetViewData
. You can access all other methods on theFormConfigInterface
object instead.Instead of
getChildren
andhasChildren
, you should now useall
andcount
.Before:
After:
Instead of
bindRequest
, you should now simply callbind
:Before:
After: