Missing annotations with the latest Composer version #5375

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

Originally created by @pascalporedda on GitHub (Jan 4, 2017).

Originally assigned to: @lcobucci on GitHub.

Hey there,

since the latest Composer version (1.3) we have experienced some strange issues with our Symfony projects. Since then the composer ClassLoader is not able to find the Doctrine Annotations if we prefixed the use statement with a backslash eg.:

use \Doctrine\ORM\Mapping as ORM;

Composer does not trim the first backslash with the latest version anymore. I had posted this issue in the composer repository here: https://github.com/composer/composer/issues/6038

According to one of the members of the repository this isn't an issue with composer itself but with the way doctrine handles its annotations. I would appreciate an answer on how to get along with this issue.

If you need further information, I will try to give you as much insight as I can.

Originally created by @pascalporedda on GitHub (Jan 4, 2017). Originally assigned to: @lcobucci on GitHub. Hey there, since the latest Composer version (1.3) we have experienced some strange issues with our Symfony projects. Since then the composer ClassLoader is not able to find the Doctrine Annotations if we prefixed the use statement with a backslash eg.: `use \Doctrine\ORM\Mapping as ORM;` Composer does not trim the first backslash with the latest version anymore. I had posted this issue in the composer repository here: https://github.com/composer/composer/issues/6038 According to one of the members of the repository this isn't an issue with composer itself but with the way doctrine handles its annotations. I would appreciate an answer on how to get along with this issue. If you need further information, I will try to give you as much insight as I can.
admin added the Invalid label 2026-01-22 15:05:54 +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#5375