title: Doctrine Join - has no association named
body: <p>I have a problem with join in Symfony Doctrine.<br>
  I have a master Entity:</p>
  
  <pre><code>class PosterCartelli{
     ...
  
     /**
      * @var int|null
      *
      * @ORM\Column(name="id_poster_categoria", type="integer", nullable=false)
      * @ORM\ManyToOne(targetEntity="App\Entity\PosterCategorie", inversedBy="idPosterCategoria")
      * @JoinColumn(name="id_poster_categoria", referencedColumnName="id_poster_categoria")
      */
       private $idPosterCategoria;
      ...
   }
  </code></pre>
  
  <p>And join with this Entity:</p>
  
  <pre><code>class PosterCategorie{
  
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(name="id_poster_categoria", type="integer")
     * @ORM\OneToMany(targetEntity="App\Entity\PosterCartelli", mappedBy="idPosterCategoria")
     */
      private $idPosterCategoria;
      ...
    }
  </code></pre>
  
  <p>My Select in PosterCartelliRepository is:</p>
  
  <pre><code> return $this-&gt;createQueryBuilder('pc')
          -&gt;andWhere('pc.stato = \'Y\'')
          -&gt;join('pc.idPosterCategoria', 'ipc')
          -&gt;orderBy('pc.numeroCartello', 'ASC')
          -&gt;getQuery()
          -&gt;getResult();
  </code></pre>
  
  <p>But I have always the same error: 
  [Semantical Error] line 0, col 76 near 'ipc WHERE pc.stato': Error: Class App\Entity\PosterCartelli has no association named idPosterCategoria</p>
  
  <p>I tried in different way but I don't have success.
  I think that everything is correct, because PosterCartelli.idPosterCagoria is declare ManyToOne with "IdPosterCategory" and viceversa.</p>
  
  <p>Can anyone help me, please?</p>