When I use the subject command line(s) (following), I get a message a Fatal
Error that a class in another directory is not found.
C:\Roy\websites\php_projects>vendor\bin\doctrine orm:schema-tool:create
using classpaths:
C:\Roy\websites\php_projects\classes\cnrepperson\forum
C:\Roy\websites\php_projects\classes\cnrepperson\util
Fatal error: Class 'cnrepperson\util\StatusBitmap' not found in
C:\Roy\websites\
php_projects\classes\cnrepperson\forum\ForumRolePermissions.class.php on
line 5
The project's layout and classpaths passed to create an EntityManager:
1. In C:\Roy\websites\php_projects\classes\cnrepperson\util is the file
StatusBitmap.class.php who's intro is:
<?php
namespace cnrepperson\util;
class StatusBitmap {
2. In C:\Roy\websites\php_projects\classes\cnrepperson\forum is the
file ForumRolePermissions.class.php who's intro is:
<?php
namespace cnrepperson\forum;
class ForumRolePermissions extends cnrepperson\util\StatusBitmap{
3. $driverImpl = $config->newDefaultAnnotationDriver( array(
realpath(dirname(__FILE__) .'/../classes/cnrepperson/forum'),
realpath(dirname(__FILE__) .'/../classes/cnrepperson/util'),
));
$config->setMetadataDriverImpl($driverImpl)
This is the first time I've tried to extends classes in one
directory(namespace) with a subclass in another directory(namespace). In
the past I've only subclass within the same directory.
What I've I done wrong?
Roy
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.