Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Docs recommend using deprecated functions for Annotations #60

@silverbackdan

Description

@silverbackdan

The Readme suggests adding this to load the annotations:

use Doctrine\Common\Annotations\AnnotationRegistry;
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

I went to do this and saw that it is deprecated and will be removed in 2.0

I don't like using deprecated functions and without calling that I get an error

[Semantical Error] The annotation "@Doctrine\ODM\CouchDB\Mapping\Annotations\Document" in class App\CouchDocument\Product does not exist, or could not be auto-loaded. 

I've noticed within the bundle there are a couple of calls to deprecated functions too such as in TestInit.php

Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace

I don't suppose there's a quick solution to this? I've read that doctrine should use the autoload.php file but it doesn't seem to be for me I don't think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions