title: Symfony Semantical Error - has no field or association
body: <p>I'm getting the error in ORM/Symfony:</p>
  <blockquote>
  <p>[Semantical Error] line 0, col 73 near 'group = :groupId': Error:
  Class ActGood\CommunityBundle\Entity\GroupReporting has no field or
  association named group</p>
  </blockquote>
  <p>My query is:</p>
  <pre><code>return $this-&gt;getEntityManager()
      -&gt;createQueryBuilder()
      -&gt;select('sum(h.hours)')
      -&gt;from('ActGoodCommunityBundle:GroupReporting','h')
      -&gt;where('h.group = :groupId') 
      -&gt;andWhere('h.start &gt;= :start') 
      -&gt;andWhere('h.end &lt;= :end')   
      -&gt;setParameters([
        'groupId' =&gt; $group-&gt;getId(),
        'start' =&gt; $start-&gt;format('Y-m-d H:i:s'),
        'end' =&gt; $end-&gt;format('Y-m-d H:i:s')
      ])
      -&gt;getQuery()
      -&gt;getSingleScalarResult();
  </code></pre>
  <p>Group is defined in <code>GroupReporting</code> here:</p>
  <pre><code>/**
   * @ORM\JoinColumn(name=&quot;group_id&quot;, referencedColumnName=&quot;group_id&quot;)
   */  
  private $group;
  </code></pre>
  <p>Since this last worked, I've both migrated servers and updated Symfony from 2.2 to 2.8. I've tried clearing cache, checked that orm's auto mapping is on. I think it might be something to do with the join column's syntax - maybe something that changed between the two versions? I've tried adding this:</p>
  <pre><code>@OneToOne(targetEntity=&quot;Group&quot;)
  </code></pre>
  <p>Any ideas?</p>