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
bd6ed7cc
Commit
bd6ed7cc
authored
Dec 22, 2009
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixing more glitches found with CLI refactoring
parent
217d4169
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
16 deletions
+10
-16
HelpTask.php
lib/Doctrine/Common/Cli/Tasks/HelpTask.php
+4
-10
RunSqlTask.php
lib/Doctrine/DBAL/Tools/Cli/Tasks/RunSqlTask.php
+1
-1
ClearCacheTask.php
lib/Doctrine/ORM/Tools/Cli/Tasks/ClearCacheTask.php
+1
-1
GenerateProxiesTask.php
lib/Doctrine/ORM/Tools/Cli/Tasks/GenerateProxiesTask.php
+1
-1
SchemaToolTask.php
lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php
+3
-3
No files found.
lib/Doctrine/Common/Cli/Tasks/HelpTask.php
View file @
bd6ed7cc
...
...
@@ -42,7 +42,9 @@ class HelpTask extends AbstractTask
*/
public
function
buildDocumentation
()
{
// Does nothing
$doc
=
$this
->
getDocumentation
();
$doc
->
setName
(
'help'
)
->
setDescription
(
'Exposes helpful information about all available tasks.'
);
}
/**
...
...
@@ -53,14 +55,6 @@ class HelpTask extends AbstractTask
$this
->
run
();
}
/**
* @inheritdoc
*/
public
function
basicHelp
()
{
$this
->
run
();
}
/**
* Exposes the available tasks
*
...
...
@@ -74,7 +68,7 @@ class HelpTask extends AbstractTask
// Switch between ALL available tasks and display the basic Help of each one
$availableTasks
=
$cliController
->
getAvailableTasks
();
unset
(
$availableTasks
[
'Core:Help'
]);
//
unset($availableTasks['Core:Help']);
ksort
(
$availableTasks
);
...
...
lib/Doctrine/DBAL/Tools/Cli/Tasks/RunSqlTask.php
View file @
bd6ed7cc
...
...
@@ -110,7 +110,7 @@ class RunSqlTask extends AbstractTask
$resultSet
=
$em
->
getConnection
()
->
executeUpdate
(
$arguments
[
'sql'
]);
}
$maxDepth
=
isset
(
$arg
s
[
'arguments
'
])
?
$arguments
[
'depth'
]
:
7
;
$maxDepth
=
isset
(
$arg
uments
[
'depth
'
])
?
$arguments
[
'depth'
]
:
7
;
Debug
::
dump
(
$resultSet
,
$maxDepth
);
}
...
...
lib/Doctrine/ORM/Tools/Cli/Tasks/ClearCacheTask.php
View file @
bd6ed7cc
...
...
@@ -88,7 +88,7 @@ class ClearCacheTask extends AbstractTask
// id, regex, prefix or suffix.
if
(
(
isset
(
$arguments
[
'query'
])
||
isset
(
$arguments
[
'metadata'
]))
&&
(
isset
(
$arguments
[
'id'
])
||
isset
(
$arg
s
[
'regex'
])
||
isset
(
$args
[
'prefix'
])
||
isset
(
$arg
s
[
'suffix'
]))
isset
(
$arg
uments
[
'regex'
])
||
isset
(
$arguments
[
'prefix'
])
||
isset
(
$argument
s
[
'suffix'
]))
)
{
throw
new
CliException
(
'When clearing the query or metadata cache do not '
.
...
...
lib/Doctrine/ORM/Tools/Cli/Tasks/GenerateProxiesTask.php
View file @
bd6ed7cc
...
...
@@ -59,7 +59,7 @@ class GenerateProxiesTask extends AbstractTask
if
(
$metadataDriver
instanceof
\Doctrine\ORM\Mapping\Driver\AnnotationDriver
)
{
if
(
isset
(
$arguments
[
'class-dir'
]))
{
$metadataDriver
->
setClassDirectory
(
$args
[
'class-dir'
]);
$metadataDriver
->
setClassDirectory
(
$arg
ument
s
[
'class-dir'
]);
}
else
{
throw
new
CliException
(
'The supplied configuration uses the annotation metadata driver. '
.
...
...
lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php
View file @
bd6ed7cc
...
...
@@ -131,13 +131,13 @@ class SchemaToolTask extends AbstractTask
}
if
(
$isCompleteUpdate
&&
(
$isCreate
||
$isDrop
||
$isUpdate
))
{
throw
new
CliException
(
'You cannot use --update with --create, --drop or --update.'
);
throw
new
CliException
(
'You cannot use --
complete-
update with --create, --drop or --update.'
);
}
if
(
!
(
$isCreate
||
$isDrop
||
$isUpdate
||
$isCompleteUpdate
))
{
throw
new
CliException
(
'You must specify at a minimum one of the options '
.
'
(--create, --drop, --update, --re-create or --complete-update)
.'
'You must specify at a minimum one of the options
:
'
.
'
--create, --drop, --update, --re-create or --complete-update
.'
);
}
...
...
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