DDC-364: No way to access version programmatically #451

Closed
opened 2026-01-22 12:38:45 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 23, 2010).

Jira issue originally created by user giorgiosironi:

There is no version information that can be retrieved via php in an installed copy of Doctrine 2 (at least in alpha3.) The only information is hardcoded in the VersionTask for the command line tool ("running Doctrine 2.0.0 alpha 3").
Since this task is in the ORM folder, when only Common or DBAL are installed there is no way to track the version (apart searching the file revision in the repository.) A static class Doctrine\Common\Version containing the info like Zend_Version of Zend Framework would be useful.

Originally created by @doctrinebot on GitHub (Feb 23, 2010). Jira issue originally created by user giorgiosironi: There is no version information that can be retrieved via php in an installed copy of Doctrine 2 (at least in alpha3.) The only information is hardcoded in the VersionTask for the command line tool ("running Doctrine 2.0.0 alpha 3"). Since this task is in the ORM folder, when only Common or DBAL are installed there is no way to track the version (apart searching the file revision in the repository.) A static class Doctrine\Common\Version containing the info like Zend_Version of Zend Framework would be useful.
admin added the Improvement label 2026-01-22 12:38:45 +01:00
admin closed this issue 2026-01-22 12:38:46 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 23, 2010):

Comment created by @guilhermeblanco:

In r7209 this issue was fixed.

@doctrinebot commented on GitHub (Feb 23, 2010): Comment created by @guilhermeblanco: In r7209 this issue was fixed.
Author
Owner

@doctrinebot commented on GitHub (Feb 23, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 23, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#451