<p dir="auto">I just upgraded from 2.0.16 to 2.1.0 Beta 4 and in this code I get error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder-&gt;add('name', 'text');
$builder-&gt;add('category', 'entity', array(
    'class' =&gt; 'PostBundle:Category',
'query_builder' =&gt; function(EntityRepository $er) {
        return $er-&gt;createQueryBuilder('u');
},
));"><pre class="notranslate"><code class="notranslate">$builder-&gt;add('name', 'text');
$builder-&gt;add('category', 'entity', array(
    'class' =&gt; 'PostBundle:Category',
'query_builder' =&gt; function(EntityRepository $er) {
        return $er-&gt;createQueryBuilder('u');
},
));
</code></pre></div>
<blockquote>
<p dir="auto">Class PostBundle:Category does not exist</p>
</blockquote>
<p dir="auto">Using Acme\PostBundle\Entity\Category instead of PostBundle:Category does work.</p>
<p dir="auto">The master documentation says the following about the entity form type:</p>
<blockquote>
<p dir="auto">The class of your entity (e.g. AcmeStoreBundle:Category). This can be a fully-qualified class name (e.g. Acme\StoreBundle\Entity\Category) or the short alias name (as shown prior).</p>
</blockquote>
<p dir="auto">However, the <code class="notranslate">Bundle:Entity</code> syntax throws the following exception:</p>
<blockquote>
<p dir="auto">Class Bundle:Entity does not exist</p>
</blockquote>
<p dir="auto">I've downloaded the symfony-standard edition and made the following test, just to be sure the problem is not caused by my project.</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace Acme\DemoBundle\Entity;

class Smartie
{
    private $smarties = array('red', 'green', 'yellow', 'brown');

    public function getSmarties()
    {
        return $this-&gt;smarties;
    }
}"><pre class="notranslate"><span class="pl-k">namespace</span> <span class="pl-v">Acme</span>\<span class="pl-v">DemoBundle</span>\<span class="pl-v">Entity</span>;

<span class="pl-k">class</span> <span class="pl-v">Smartie</span>
{
    <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>smarties</span> = <span class="pl-en">array</span>(<span class="pl-s">'red'</span>, <span class="pl-s">'green'</span>, <span class="pl-s">'yellow'</span>, <span class="pl-s">'brown'</span>);

    <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getSmarties</span>()
    {
        <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">smarties</span>;
    }
}</pre></div>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace Acme\DemoBundle\Form;

public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder-&gt;add('yummie', 'entity', array(
        'class' =&gt; 'AcmeDemoBundle:Smartie',
        'property' =&gt; 'smarties'
    ));
}"><pre class="notranslate"><span class="pl-k">namespace</span> <span class="pl-v">Acme</span>\<span class="pl-v">DemoBundle</span>\<span class="pl-v">Form</span>;

<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">buildForm</span>(<span class="pl-smi"><span class="pl-smi">FormBuilderInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>, <span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>)
{
    <span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>(<span class="pl-s">'yummie'</span>, <span class="pl-s">'entity'</span>, <span class="pl-en">array</span>(
        <span class="pl-s">'class'</span> =&gt; <span class="pl-s">'AcmeDemoBundle:Smartie'</span>,
        <span class="pl-s">'property'</span> =&gt; <span class="pl-s">'smarties'</span>
    ));
}</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{{ form_widget(form.yummie) }}"><pre class="notranslate"><code class="notranslate">{{ form_widget(form.yummie) }}
</code></pre></div>
<p dir="auto">And that throws the following exception:</p>
<blockquote>
<p dir="auto">Class AcmeDemoBundle:Smartie does not exist<br>
vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php at line 158<br>
$proxyClass = new \ReflectionClass($class);</p>
</blockquote>
<p dir="auto">Maybe something has changed due the latest form improvements, I don't know. Either it's a bug or the documentation needs a update.</p>