Using partial and non-partial select from a join in doctrine
<p>My Querybuilder statement looks like this:</p>

<pre><code>$qb-&gt;from('models\Order', o');
$qb-&gt;innerJoin('o.fStatus', 'fs');
$qb-&gt;select('COUNT(o.id), PARTIAL fs.{name, id}');
</code></pre>

<p>If I run this I get the error</p>

<pre><code>SELECT COUNT(o.id),': Error: Cannot select entity through identification variables without choosing at least one root entity alias.
</code></pre>

<p>However, if I change my select statement to either of these:</p>

<pre><code>$qb-&gt;select('PARTIAL o.{id}, PARTIAL fs.{name, id}');
$qb-&gt;select('COUNT(o.id), fs.name, fs.id');
</code></pre>

<p>The query will run.</p>

<p>Why can I not select from the root entity and also a partial object that has been joined to it?</p>