<p dir="auto">The change introduced in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/a10844587b4494c678e8e2095a05f1bb88d06cb2/hovercard" href="https://github.com/symfony/symfony/commit/a10844587b4494c678e8e2095a05f1bb88d06cb2"><tt>a108445</tt></a> causes fields that were valid in 2.6.4 to be invalid in 2.6.5.</p>
<p dir="auto">When I revert that one commit in 2.6.5 the problem is fixed.</p>
<p dir="auto">The error I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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 &quot;bundle&quot;: The choice &quot;550fe15080c7e16f5b8b4da0&quot; does not exist or is not unique

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
The choice &quot;550fe15080c7e16f5b8b4da0&quot; does not exist or is not unique"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<p dir="auto">The following line does not convert multiple values into an <code class="notranslate">$in</code> query:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$this-&gt;em-&gt;getRepository($this-&gt;class)-&gt;findBy(array($this-&gt;idField =&gt; $values));"><pre class="notranslate"><code class="notranslate">$this-&gt;em-&gt;getRepository($this-&gt;class)-&gt;findBy(array($this-&gt;idField =&gt; $values));
</code></pre></div>
<p dir="auto">After updating Symfony from 2.6.4 to 2.6.5 handling (MongoDB) <code class="notranslate">document</code> as Field is broken.</p>
<p dir="auto">Example FormType:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder-&gt;add('terminal', 'document', array('label' =&gt; 'terminal', 'required' =&gt; false, 'class' =&gt; 'company\ExampleBundle\Document\Terminal'));
}"><pre class="notranslate"><code class="notranslate">public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder-&gt;add('terminal', 'document', array('label' =&gt; 'terminal', 'required' =&gt; false, 'class' =&gt; 'company\ExampleBundle\Document\Terminal'));
}
</code></pre></div>
<p dir="auto">Submitted Form is not valid, Profiler told me:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Symfony\Component\Validator\ConstraintViolation
Object(Symfony\Component\Form\Form).children[terminal] = 546e4a2d46139fca3b413051

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
Unable to reverse value for property path &quot;terminal&quot;: The choice &quot;546e4a2d46139fca3b413051&quot; does not exist or is not unique

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
The choice &quot;546e4a2d46139fca3b413051&quot; does not exist or is not unique"><pre class="notranslate"><code class="notranslate">Symfony\Component\Validator\ConstraintViolation
Object(Symfony\Component\Form\Form).children[terminal] = 546e4a2d46139fca3b413051

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
Unable to reverse value for property path "terminal": The choice "546e4a2d46139fca3b413051" does not exist or is not unique

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
The choice "546e4a2d46139fca3b413051" does not exist or is not unique
</code></pre></div>
<p dir="auto">But document <code class="notranslate">546e4a2d46139fca3b413051</code> exists and is unique. Reverting symfony back to 2.6.4 does not lead to this issue and submitted form is valid.</p>