Doctrine not working unless I explicitly call AnnotationDriver::getAllClassNames
问题 I'm attempting to use Doctrine ORM for the first time, and I'm following the configuration found here. Following these steps directly results in the following error: Warning: class_parents() [function.class-parents]: Class MyProject\Model\User does not exist and could not be loaded in /opt/local/lib/php/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 222 Warning: array_reverse() expects parameter 1 to be array, boolean given in /opt/local/lib/php/Doctrine/ORM/Mapping