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

[Symfony 2.7] Add rename rule for "options" and "type" to "entry_options" and "entry_type" #214

Closed
TomasVotruba opened this issue Aug 6, 2022 · 3 comments · Fixed by #215
Assignees

Comments

@TomasVotruba
Copy link
Member

See symfony/symfony#15025

$formBuilder
    ->add('name', 'text', array('label' => '...'))
    ->add(...)
    ->add('friends', 'collection', array(
-        'type' => new FriendType(),
+       'entry_type' => new FriendType(),
-        'options' => array(...)
+        'entry_options' => array(...)
    ))
;

This rule might be added, but I could not find it here. So please verify if we have it first. If not, it's should a new rule 🙂

@samsonasik
Copy link
Member

@TomasVotruba it seems already exists, ref :

It is part of symfony 3.0 config set:

@TomasVotruba
Copy link
Member Author

I see.

Could you move it to Symfony 2.7? It should be there

@samsonasik
Copy link
Member

Yes #215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants