DDC-608: Sandbox doesn't work anymore #744

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

Originally created by @doctrinebot on GitHub (May 24, 2010).

Jira issue originally created by user dalexandre:

The sandbox can't work, there is a lot of relative path hardcoded to reset first :

require '../../DoctrineORM-2.0.0/Doctrine/Common/ClassLoader.php';

// Set up class loading. You could use different autoloaders, provided by your favorite framework,
// if you want to.
$doctrineClassLoader = new ClassLoader('Doctrine', realpath(*_DIR_* . '/../../DoctrineORM-2.0.0'));
require *_DIR_* .'/../../DoctrineORM-2.0.0/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine', realpath(*_DIR_* . '/../../DoctrineORM-2.0.0'));
$classLoader->register();

$classLoader = new \Doctrine\Common\ClassLoader('Symfony', realpath(*_DIR_* . '/../../DoctrineORM-2.0.0/vendor'));
$classLoader->register();

But even after set the rights path, we still can't launch the Doctrine Cli :
require(/Symfony/Components/Console/Helper/Helper.php) fail (there is no Symfony components in the package).

If the Symfony Components needs to be included by hand, please update the documentation here : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/introduction/en#sandbox-quickstart

Originally created by @doctrinebot on GitHub (May 24, 2010). Jira issue originally created by user dalexandre: The sandbox can't work, there is a lot of relative path hardcoded to reset first : ``` require '../../DoctrineORM-2.0.0/Doctrine/Common/ClassLoader.php'; // Set up class loading. You could use different autoloaders, provided by your favorite framework, // if you want to. $doctrineClassLoader = new ClassLoader('Doctrine', realpath(*_DIR_* . '/../../DoctrineORM-2.0.0')); ``` ``` require *_DIR_* .'/../../DoctrineORM-2.0.0/Doctrine/Common/ClassLoader.php'; ``` ``` $classLoader = new \Doctrine\Common\ClassLoader('Doctrine', realpath(*_DIR_* . '/../../DoctrineORM-2.0.0')); $classLoader->register(); $classLoader = new \Doctrine\Common\ClassLoader('Symfony', realpath(*_DIR_* . '/../../DoctrineORM-2.0.0/vendor')); $classLoader->register(); ``` But even after set the rights path, we still can't launch the Doctrine Cli : require(/Symfony/Components/Console/Helper/Helper.php) fail (there is no Symfony components in the package). If the Symfony Components needs to be included by hand, please update the documentation here : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/introduction/en#sandbox-quickstart
admin added the Bug label 2026-01-22 12:48:58 +01:00
admin closed this issue 2026-01-22 12:48:59 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 24, 2010):

Comment created by dalexandre:

Sorry for the noise, seems to be resolved in the master !

Have a nice day anyway ;-)

@doctrinebot commented on GitHub (May 24, 2010): Comment created by dalexandre: Sorry for the noise, seems to be resolved in the master ! Have a nice day anyway ;-)
Author
Owner

@doctrinebot commented on GitHub (May 24, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 24, 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#744