Skip to content
New issue

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

Methods in Form were deprecated and will be removed in Symfony 2.3. #41

Open
pawaclawczyk opened this issue Mar 2, 2014 · 0 comments
Open

Comments

@pawaclawczyk
Copy link
Owner

  • 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:

    $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.

    Instead of getChildren and hasChildren, you should now use all and
    count.

    Before:

    if ($form->hasChildren()) {
    

    After:

    if (count($form) > 0) {
    

    Instead of bindRequest, you should now simply call bind:

    Before:

    $form->bindRequest($request);
    

    After:

    $form->bind($request);
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant