Class 'Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver' not found #6061

Open
opened 2026-01-22 15:25:49 +01:00 by admin · 0 comments
Owner

Originally created by @ekosynth on GitHub (Sep 7, 2018).

Originally assigned to: @Majkl578 on GitHub.

Bug Report

Q A
BC Break no
Version 2.4.8

Summary

Can't find AnnotationDriver class when running tutorial

Current behavior

Can't find AnnotationDriver class when running tutorial

How to reproduce

Follow all tutorial steps, then run

vendor/bin/doctrine orm:schema-tool:create

This error is returned:

Fatal error: Class 'Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver' not found in C:\Workspace\xxx\doctrine2-tutorial\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\Driver\AnnotationDriver.php on line 40

Expected behavior

Schema create will run without error

Originally created by @ekosynth on GitHub (Sep 7, 2018). Originally assigned to: @Majkl578 on GitHub. ### Bug Report <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ------ | BC Break | no | Version | 2.4.8 #### Summary Can't find AnnotationDriver class when running tutorial #### Current behavior Can't find AnnotationDriver class when running tutorial #### How to reproduce [Follow all tutorial steps,](https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/tutorials/getting-started.html) then run ` vendor/bin/doctrine orm:schema-tool:create` This error is returned: `Fatal error: Class 'Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver' not found in C:\Workspace\xxx\doctrine2-tutorial\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\Driver\AnnotationDriver.php on line 40 ` #### Expected behavior Schema create will run without error
admin added the BugDocumentation labels 2026-01-22 15:25:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6061