Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
afbe3add
Commit
afbe3add
authored
Dec 22, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0][DDC-221] Namespace fixes.
parent
42a1af82
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
CliController.php
lib/Doctrine/Common/Cli/CliController.php
+3
-3
StandardEntityPersister.php
lib/Doctrine/ORM/Persisters/StandardEntityPersister.php
+2
-3
doctrine.php
tools/sandbox/doctrine.php
+3
-4
No files found.
lib/Doctrine/Common/Cli/CliController.php
View file @
afbe3add
...
...
@@ -68,11 +68,11 @@ class CliController extends AbstractNamespace
$this
->
setConfiguration
(
$config
);
// Include core namespaces of tasks
$ns
=
'
\
Doctrine\Common\Cli\Tasks'
;
$ns
=
'Doctrine\Common\Cli\Tasks'
;
$this
->
addNamespace
(
'Core'
)
->
addTask
(
'help'
,
$ns
.
'\HelpTask'
);
$ns
=
'
\
Doctrine\ORM\Tools\Cli\Tasks'
;
$ns
=
'Doctrine\ORM\Tools\Cli\Tasks'
;
$this
->
addNamespace
(
'Orm'
)
->
addTask
(
'clear-cache'
,
$ns
.
'\ClearCacheTask'
)
->
addTask
(
'convert-mapping'
,
$ns
.
'\ConvertMappingTask'
)
...
...
@@ -82,7 +82,7 @@ class CliController extends AbstractNamespace
->
addTask
(
'schema-tool'
,
$ns
.
'\SchemaToolTask'
)
->
addTask
(
'version'
,
$ns
.
'\VersionTask'
);
$ns
=
'
\
Doctrine\DBAL\Tools\Cli\Tasks'
;
$ns
=
'Doctrine\DBAL\Tools\Cli\Tasks'
;
$this
->
addNamespace
(
'Dbal'
)
->
addTask
(
'run-sql'
,
$ns
.
'\RunSqlTask'
);
}
...
...
lib/Doctrine/ORM/Persisters/StandardEntityPersister.php
View file @
afbe3add
...
...
@@ -103,9 +103,8 @@ class StandardEntityPersister
private
$_insertSql
;
/**
* Initializes a new instance of a class derived from AbstractEntityPersister
* that uses the given EntityManager and persists instances of the class described
* by the given class metadata descriptor.
* Initializes a new <tt>StandardEntityPersister</tt> that uses the given EntityManager
* and persists instances of the class described by the given class metadata descriptor.
*
* @param EntityManager $em
* @param ClassMetadata $class
...
...
tools/sandbox/doctrine.php
View file @
afbe3add
<?php
require
_once
__DIR__
.
'/../../lib/Doctrine/Common/ClassLoader.php'
;
require
__DIR__
.
'/../../lib/Doctrine/Common/ClassLoader.php'
;
$classLoader
=
new
\Doctrine\Common\ClassLoader
();
$classLoader
->
setIncludePath
(
__DIR__
.
'/../../lib'
);
$classLoader
=
new
\Doctrine\Common\ClassLoader
(
'Doctrine'
,
__DIR__
.
'/../../lib'
);
$classLoader
->
register
();
// 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
->
run
(
$_SERVER
[
'argv'
]);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment