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

Change in EntityChoiceList causes errors in valid form field #14025

Closed
coudenysj opened this issue Mar 23, 2015 · 3 comments
Closed

Change in EntityChoiceList causes errors in valid form field #14025

coudenysj opened this issue Mar 23, 2015 · 3 comments
Labels

Comments

@coudenysj
Copy link

The change introduced in a108445 causes fields that were valid in 2.6.4 to be invalid in 2.6.5.

When I revert that one commit in 2.6.5 the problem is fixed.

The error I get:

Symfony\Component\Validator\ConstraintViolation
Object(Symfony\Component\Form\Form).children[bundle] = 550fe15080c7e16f5b8b4da0

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
Unable to reverse value for property path "bundle": The choice "550fe15080c7e16f5b8b4da0" does not exist or is not unique

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
The choice "550fe15080c7e16f5b8b4da0" does not exist or is not unique

The following line does not convert multiple values into an $in query:

$this->em->getRepository($this->class)->findBy(array($this->idField => $values));
coudenysj referenced this issue Mar 23, 2015
…y that EntityLoader customization does (if you provide a query_builder).
@xabbuh
Copy link
Member

xabbuh commented Mar 23, 2015

@coudenysj Can you check if #13961 is the same and if then #13997 fixes the issue for you too?

@coudenysj
Copy link
Author

@xabbuh It is the same issue, and looks like #13397 will fix it. Will try the patch tomorrow.

@webmozart webmozart added the Form label Mar 24, 2015
@coudenysj
Copy link
Author

Duplicate of #13961. PR #13997 fixed this.

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

No branches or pull requests

3 participants