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

Fatal error when using a custom repository class in AnnotationDriver

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0ALPHA1
    • Fix Version/s: 1.0.0ALPHA1
    • Component/s: None
    • Labels:
      None

      Description

      When defining a custom repository in an annotation the AnnotationDriver gives an Fatal error on line 105

      Call to a member function setCustomRepositoryClass() on a non-object in /data/sites/lib/Doctrine/ODM/MongoDB/Mapping/Driver/AnnotationDriver.php on line 105

      replacing:
      $metadata->setCustomRepositoryClass($documentAnnot->repositoryClass);

      for:
      $class->setCustomRepositoryClass($documentAnnot->repositoryClass);

      solves this issue..
      Cheers, Onno

        Activity

        Onno Schmidt created issue -
        Jonathan H. Wage made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jonathan H. Wage made changes -
        Affects Version/s 1.0.0ALPHA1 [ 10064 ]
        Fix Version/s 1.0.0ALPHA1 [ 10064 ]

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Onno Schmidt
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: