title: The method name must start with either findBy or findOneBy! (uncaught exception)
body: <p>I´ve checked already <a href="https://stackoverflow.com/questions/9172586/the-method-name-must-start-with-either-findby-or-findoneby-undefined-method-sym">this</a> but my error seems to be different.</p>
  
  <p>I´m getting this error:</p>
  
  <pre><code>[2012-05-07 14:09:59] request.CRITICAL: BadMethodCallException: Undefined method 'findOperariosordenados'. The method name must start with either findBy or findOneBy! (uncaught exception) at /Users/gitek/www/uda/vendor/doctrine/lib/Doctrine/ORM/EntityRepository.php line 201 [] []
  </code></pre>
  
  <p>This is my OperarioRepository:</p>
  
  <pre><code>&lt;?php
  
  namespace Gitek\UdaBundle\Entity;
  
  use Doctrine\ORM\EntityRepository;
  
  /**
   * OperarioRepository
   *
   * This class was generated by the Doctrine ORM. Add your own custom
   * repository methods below.
   */
  class OperarioRepository extends EntityRepository
  {
      public function findOperariosordenados()
      {
          $em = $this-&gt;getEntityManager();
          $consulta = $em-&gt;createQuery('SELECT o FROM GitekUdaBundle:Operario o
                                          ORDER BY o.apellidos, o.nombre');
  
          return $consulta-&gt;getResult();
      }    
  }
  </code></pre>
  
  <p>This my controller, where I call the repository:</p>
  
  <pre><code>$em = $this-&gt;getDoctrine()-&gt;getEntityManager();
  $operarios = $em-&gt;getRepository('GitekUdaBundle:Operario')-&gt;findOperariosordenados();   
  </code></pre>
  
  <p>Finally, this is my Entity:</p>
  
  <pre><code>&lt;?php
  
  namespace Gitek\UdaBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * Gitek\UdaBundle\Entity\Operario
   *
   * @ORM\Table(name="Operario")
   * @ORM\Entity(repositoryClass="Gitek\UdaBundle\Entity\OperarioRepository")
   */
  class Operario
  {
      /**
       * @var integer $id
       *
       * @ORM\Column(name="id", type="integer")
       * @ORM\Id
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      private $id;
  
      /**
       * @var string $nombre
       *
       * @ORM\Column(name="nombre", type="string", length=255)
       */
      private $nombre;
      ----
      ----
  </code></pre>
  
  <p>Any help or clue??</p>
  
  <p>Thanks in advance</p>
  
  <p>EDIT: Works fine on dev environment, but no in prod environment.</p>