Commit afbe3add authored by romanb's avatar romanb

[2.0][DDC-221] Namespace fixes.

parent 42a1af82
...@@ -68,11 +68,11 @@ class CliController extends AbstractNamespace ...@@ -68,11 +68,11 @@ class CliController extends AbstractNamespace
$this->setConfiguration($config); $this->setConfiguration($config);
// Include core namespaces of tasks // Include core namespaces of tasks
$ns = '\Doctrine\Common\Cli\Tasks'; $ns = 'Doctrine\Common\Cli\Tasks';
$this->addNamespace('Core') $this->addNamespace('Core')
->addTask('help', $ns . '\HelpTask'); ->addTask('help', $ns . '\HelpTask');
$ns = '\Doctrine\ORM\Tools\Cli\Tasks'; $ns = 'Doctrine\ORM\Tools\Cli\Tasks';
$this->addNamespace('Orm') $this->addNamespace('Orm')
->addTask('clear-cache', $ns . '\ClearCacheTask') ->addTask('clear-cache', $ns . '\ClearCacheTask')
->addTask('convert-mapping', $ns . '\ConvertMappingTask') ->addTask('convert-mapping', $ns . '\ConvertMappingTask')
...@@ -82,7 +82,7 @@ class CliController extends AbstractNamespace ...@@ -82,7 +82,7 @@ class CliController extends AbstractNamespace
->addTask('schema-tool', $ns . '\SchemaToolTask') ->addTask('schema-tool', $ns . '\SchemaToolTask')
->addTask('version', $ns . '\VersionTask'); ->addTask('version', $ns . '\VersionTask');
$ns = '\Doctrine\DBAL\Tools\Cli\Tasks'; $ns = 'Doctrine\DBAL\Tools\Cli\Tasks';
$this->addNamespace('Dbal') $this->addNamespace('Dbal')
->addTask('run-sql', $ns . '\RunSqlTask'); ->addTask('run-sql', $ns . '\RunSqlTask');
} }
......
...@@ -103,9 +103,8 @@ class StandardEntityPersister ...@@ -103,9 +103,8 @@ class StandardEntityPersister
private $_insertSql; private $_insertSql;
/** /**
* Initializes a new instance of a class derived from AbstractEntityPersister * Initializes a new <tt>StandardEntityPersister</tt> that uses the given EntityManager
* that uses the given EntityManager and persists instances of the class described * and persists instances of the class described by the given class metadata descriptor.
* by the given class metadata descriptor.
* *
* @param EntityManager $em * @param EntityManager $em
* @param ClassMetadata $class * @param ClassMetadata $class
......
<?php <?php
require_once __DIR__ . '/../../lib/Doctrine/Common/ClassLoader.php'; require __DIR__ . '/../../lib/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader(); $classLoader = new \Doctrine\Common\ClassLoader('Doctrine', __DIR__ . '/../../lib');
$classLoader->setIncludePath(__DIR__ . '/../../lib');
$classLoader->register(); $classLoader->register();
// Variable $configuration is defined inside cli-config.php // Variable $configuration is defined inside cli-config.php
require_once __DIR__ . '/cli-config.php'; require __DIR__ . '/cli-config.php';
$cli = new \Doctrine\Common\Cli\CliController($configuration); $cli = new \Doctrine\Common\Cli\CliController($configuration);
$cli->run($_SERVER['argv']); $cli->run($_SERVER['argv']);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment