Skip to content

add missing choices_as_values options #7949

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
Jul 12, 2017
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 26, 2017

No description provided.

@xabbuh xabbuh added this to the 2.7 milestone May 26, 2017
@javiereguiluz javiereguiluz requested a review from HeahDude May 28, 2017 11:48
@xabbuh
Copy link
Member Author

xabbuh commented Jul 12, 2017

ping @HeahDude :)

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

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

👍

@@ -490,9 +490,10 @@ sport like this::
$positions = null === $sport ? array() : $sport->getAvailablePositions();

$form->add('position', 'entity', array(
'class' => 'AppBundle:Position',
'class' => 'AppBundle:Position',
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not related to your PR but what about dropping this doctrine notation in favor of class constants in the docs? The only advantage it has today IMO is eventually for config files with factory methods (even there I always prefer fqcn though).

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree. In #7907 we did that when using the getRepository() method. I will prepare another PR for other places where we use this (like here).

@xabbuh xabbuh force-pushed the choices-as-values branch from 04f861a to 899f148 Compare July 12, 2017 20:11
@xabbuh xabbuh merged commit 899f148 into symfony:2.7 Jul 12, 2017
xabbuh added a commit that referenced this pull request Jul 12, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

add missing choices_as_values options

Commits
-------

899f148 add missing choices_as_values options
@xabbuh xabbuh deleted the choices-as-values branch July 12, 2017 20:17
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.

3 participants