8000 [Form][DoctrineBridge] Optimize EntityType by only loading choices for values restricted by values by guilhermeblanco · Pull Request #13606 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form][DoctrineBridge] Optimize EntityType by only loading choices for values restricted by values #13606

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
Feb 8, 2015

Conversation

guilhermeblanco
Copy link
Contributor
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

Optimize EntityType by only loading choices for values in the same way that EntityLoader customization does (if you provide a query_builder).

…y that EntityLoader customization does (if you provide a query_builder).
@phansys
Copy link
Contributor
phansys commented Feb 5, 2015

Recently I had to manage this behavior through form options since I have a lot of choices and performance was seriously degraded with the amount of results.
👍

@fabpot
Copy link
Member
fabpot commented Feb 5, 2015

Does it make sense to merge this into 2.3?

@guilhermeblanco
Copy link
Contributor Author

@fabpot Yes. =) Doctrine 2.3 addressed some issues with findBy looking for associations as keys, but you cannot use it inside of EntityType, so it's irrelevant.

I'd say it makes sense to merge in all branches if they're maintained.

@fabpot
Copy link
Member
fabpot commented Feb 8, 2015

Thank you @guilhermeblanco.

@fabpot fabpot closed this Feb 8, 2015
@fabpot fabpot merged commit 2185883 into symfony:2.7 Feb 8, 2015
fabpot added a commit that referenced this pull request Feb 8, 2015
… choices for values restricted by values (guilhermeblanco)

This PR was merged into the 2.7 branch.

Discussion
----------

[Form][DoctrineBridge] Optimize EntityType by only loading choices for values restricted by values

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

Optimize EntityType by only loading choices for values in the same way that EntityLoader customization does (if you provide a query_builder).

Commits
-------

2185883 Optimize EntityType by only loading choices for values in the same way that EntityLoader customization does (if you provide a query_builder).
@guilhermeblanco
Copy link
Contributor Author

@fabpot Why this was not merged into Symfony 2.6?

@fabpot
Copy link
Member
fabpot commented Feb 21, 2015

@guilhermeblanco Sorry about that, I made a mistake when merging. I'm going to merge it manually into 2.3.

@mrohnstock
Copy link
Contributor

This commit introduces an issue with mongodb, see #13961

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.

4 participants
0