Doctrine 2, HINT_FORCE_PARTIAL_LOAD wont fetch joined entities
<p>there is a voucher:</p>

<pre><code>/**
 * @ORM\OneToMany(targetEntity="VoucherCode", mappedBy="voucher")
 */
protected $voucherCode;
</code></pre>

<p>and voucher code:</p>

<pre><code>/**
 * @var \Doctrine\Entity\Voucher
 *
 * @ORM\ManyToOne(targetEntity="Doctrine\Entity\Voucher", inversedBy="voucherCode")
 * @ORM\JoinColumn(name="voucher_id", referencedColumnName="id")
 */
protected $voucher;
</code></pre>

<p>if I do a query builder on voucherCode and add a <code>$qb-&gt;leftJoin('x.voucher', 'v');</code> then it wont query the vouchers, <code>-&gt;getVoucher()</code> is NULL... although viewing the DQL, leftjoin do takes place.</p>

<p>If I remove the <code>-&gt;setHint(\Doctrine\ORM\Query::HINT_FORCE_PARTIAL_LOAD, true));</code> then it works OK. Whats the matter?</p>