Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-142

DocumentRepository::findBy() not compatible with interface

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0BETA3
    • Fix Version/s: None
    • Component/s: Document Repositories
    • Labels:
      None

      Description

      I want to get a document repository for my Document\Event document class but instead i get a fatal error.

      Pseudo
      <?php
      
      use Doctrine\MongoDB\Connection;
      use Doctrine\ODM\MongoDB\DocumentManager;
      use Doctrine\ODM\MongoDB\Configuration;
      use Documents\Event;
      
      $manager = new DocumentManager(
          new Connection(...),
          new Configuration(...)
      );
      
      $manager->getRepository('Documents\Event');

      Fatal error: Declaration of Doctrine\ODM\MongoDB\DocumentRepository::findBy() must be compatible with that of Doctrine\Common\Persistence\ObjectRepository::findBy() in /home/jpieper/Workspace/Jersey/vendor/doctrine-common/lib/Doctrine/ODM/MongoDB/DocumentRepository.php on line 39

      DoctrineCommonPersistenceObjectRepository.php (github@5a285537)
      public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);
      DoctrineODMMongoDBDocumentRepository.php (github@8d02e843)
      public function findBy(array $criteria) { ... }

      See https://github.com/doctrine/common/commit/5a2855372834cf37e0408e80dcb9a9c97ec1d352#lib/Doctrine/Common/Persistence

        Activity

        Jan Pieper created issue -

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=MODM-142, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Jan Pieper
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: