title: EntityManager getRepository, method find(id) returns controller
body: <p>My problem is that when I try to find a database record using <code>$em-&gt;find</code> method, it returns me a Controller.</p>
  
  <p>Let me put an example:</p>
  
  <p><code>Neostat\DiagnosticoBundle\Controller\ComponentController.php</code>:</p>
  
  <pre><code>$em = $this-&gt;getDoctrine()-&gt;getEntityManager();
  $diagnostico = $em-&gt;getRepository('NeostatDiagnosticoBundle:Diagnostico')-&gt;find($id);
  var_dump(get_class($diagnostico));
  </code></pre>
  
  <p>It returns <code>Neostat\DiagnosticoBundle\Controller\ComponentController</code>.</p>
  
  <p>But I have an entity called <code>Diagnostico.php</code> in <code>src/Neostat/DiagnosticoBundle/Entity/Diagnostico.php</code>:</p>
  
  <pre><code>namespace Neostat\DiagnosticoBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  use Doctrine\Common\Collections\ArrayCollection;
  use Neostat\PacienteBundle\Entity\Paciente;
  use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  
  /**
   * Diagnostico
   *
   * @ORM\Table(name="diagnostico")
   * @ORM\Entity(repositoryClass="Neostat\DiagnosticoBundle\Entity\DiagnosticoRepository")
   * @UniqueEntity(fields={"nombre"}, message="Ya existe un diagnostico con ese nombre.")
   */
  class Diagnostico
  {
      /**
       * @var integer
       *
       * @ORM\Column(name="id", type="integer")
       * @ORM\Id
       * @ORM\GeneratedValue(strategy="AUTO")
       */
  private $id;
  
  // etc...
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>