10BC0 [Form] fixed "empty_value" option deprecation by HeahDude · Pull Request #20425 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@HeahDude
Copy link
Contributor
@HeahDude HeahDude commented Nov 6, 2016
Q A
Branch? 2.x only
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #15945 (comment)
License MIT
Doc PR ~

I didn't make any profiling but a resolver instance is passed to configureOptions() creating locale variables including those exceptions for each field using one of the patched form types, so I guess the memory usage can grow really fast.

class ChoiceType extends AbstractType
{
// To be removed in 3.0
const DEPRECATED_EMPTY_VALUE = '__deprecated_empty_value__';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@internal then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolas-grekas done :)

@HeahDude HeahDude force-pushed the fix/empty_value-deprecation branch from f186f6f to 7e84907 Compare November 25, 2016 19:10
@HeahDude
Copy link
Contributor Author
HeahDude commented Dec 3, 2016

ping @fabpot :)

@fabpot
8000 Copy link
Member
fabpot commented Dec 3, 2016

Thank you @HeahDude.

@fabpot fabpot merged commit 7e84907 into symfony:2.7 Dec 3, 2016
fabpot added a commit that referenced this pull request Dec 3, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

[Form] fixed "empty_value" option deprecation

| Q             | A
| ------------- | ---
| Branch?       | 2.x only
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15945 (comment)
| License       | MIT
| Doc PR        | ~

I didn't make any profiling but a resolver instance is passed to `configureOptions()` creating locale variables including those exceptions for each field using one of the patched form types, so I guess the memory usage can grow really fast.

Commits
-------

7e84907 [Form] fixed "empty_value" option deprecation
@HeahDude HeahDude deleted the fix/empty_value-deprecation branch December 3, 2016 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0