Welcome to ODMng!
Please review list of deprecated functionality we included with previous releases and adhere to made suggestions:
registerAnnotationClasses()
method was registering ODM annotations in the AnnotationRegistry
and was recommended to be called during bootstrap of your application. The new way to ensure
annotations can be autoloaded properly is registering Composer's autoloader instead:
use Doctrine\Common\Annotations\AnnotationRegistry;
$loader = require_once('path/to/vendor/autoload.php');
AnnotationRegistry::registerLoader([$loader, 'loadClass']);