Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.0-ALPHA2
-
Fix Version/s: 1.2.0-ALPHA3
-
Component/s: None
-
Labels:None
Description
The Doctrine.php class makes it very hard to pull in Doctrine via svn:externals in combination with an existing autoloader. The problem is the Doctrine.php this means you usually end up with something like Doctrine/Doctrine.php locally, which means you need to use the Doctrine autoloader or add another include path.
One solution is to simply do two externals:
http://svn.doctrine-project.org/branches/1.2/lib/
http://svn.doctrine-project.org/branches/1.2/lib/Doctrine
And then including Doctrine.php manually.
The issue is of course that I cannot just do an external on the file because those only work on local repos. Svn also does not support sparse checkouts for externals.
I see 2 solutions:
1) Simple solution would be to provide a directory with just Doctrine.php via a separate url
2) Move the code in Doctrine.php to Doctrine/Core.php and just extend that class from Doctrine.php for BC
It might make sense to document inside the ticket what approach you took ..