We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 text was updated successfully, but these errors were encountered:
No branches or pull requests
The following methods in
Form
were deprecated and will be removed inSymfony 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 the
FormConfigInterface
object instead.Instead of
getChildren
andhasChildren
, you should now useall
andcount
.Before:
After:
Instead of
bindRequest
, you should now simply callbind
:Before:
After:
The text was updated successfully, but these errors were encountered: