8000 [Doctrine][Bridge] EntityType: Allow empty result; default `choices` value changed to null by RapotOR · Pull Request #2868 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Doctrine][Bridge] EntityType: Allow empty result; default choices value changed to null #2868

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

Merged
merged 1 commit into from
Dec 13, 2011
Merged

[Doctrine][Bridge] EntityType: Allow empty result; default choices value changed to null #2868

merged 1 commit into from
Dec 13, 2011

Conversation

RapotOR
Copy link
Contributor
@RapotOR RapotOR commented Dec 13, 2011

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
References the following tickets: #2504

  • added testEmptyChoicesAreManaged test
  • null as default value for choices.
  • is_array() used to test if choices are user-defined.
  • null as default value in __construct too.
  • null as default value for choices in EntityType.

I squashed commits from PR #2504 as requested.

…d of **array()**.

- added *testEmptyChoicesAreManaged* test
- `null` as default value for choices.
- is_array() used to test if choices are user-defined.
- `null` as default value in __construct too.
- `null` as default value for choices in EntityType.
fabpot added a commit that referenced this pull request Dec 13, 2011
Commits
-------

4d64d90 Allow empty result; change default *choices* value to **null** instead of **array()**. - added *testEmptyChoicesAreManaged* test - `null` as default value for choices. - is_array() used to test if choices are user-defined. - `null` as default value in __construct too. - `null` as default value for choices in EntityType.

Discussion
----------

[Doctrine][Bridge] EntityType: Allow empty result; default `choices` value changed to null

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
References the following tickets: #2504

- added *testEmptyChoicesAreManaged* test
- `null` as default value for choices.
-  is_array() used to test if choices are user-defined.
- `null` as default value in __construct too.
- `null` as default value for choices in EntityType.

I squashed commits from PR #2504 as requested.
@fabpot fabpot merged commit 4d64d90 into symfony:2.0 Dec 13, 2011
@RapotOR
Copy link
Contributor Author
RapotOR commented Dec 14, 2011

@fabpot Regarding the master branch, @stof said in PR2504 that github has conflicts.
Did I need to do same modifications on master branch and PR again?
Thanks,

@fabpot
Copy link
Member
fabpot commented Dec 14, 2011

@RapotOR: I've just merge 2.0 into master and I've resolved the conflicts. You can have a look just to be sure I've not messed up with your code during the conflict resolution.

@RapotOR
Copy link
Contributor Author
RapotOR commented Dec 14, 2011

@fabpot Perfect. Thanks.

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

Successfully merging this pull request may close these issues.

2 participants
0