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
e4d8efa3
Commit
e4d8efa3
authored
Apr 09, 2010
by
Guilherme Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Couple of fixes to new Console implementation
parent
b0e26fa1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
21 deletions
+6
-21
Version.php
lib/Doctrine/Common/Version.php
+1
-1
RunSqlCommand.php
lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php
+1
-2
RunDqlCommand.php
lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.php
+1
-1
CreateCommand.php
...ne/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php
+1
-1
DropCommand.php
...rine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php
+1
-1
UpdateCommand.php
...ne/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php
+1
-1
cli-config.php
tools/sandbox/cli-config.php
+0
-14
No files found.
lib/Doctrine/Common/Version.php
View file @
e4d8efa3
...
@@ -38,7 +38,7 @@ class Version
...
@@ -38,7 +38,7 @@ class Version
/**
/**
* Current Doctrine Version
* Current Doctrine Version
*/
*/
const
VERSION
=
'2.0
ALPHA 4
'
;
const
VERSION
=
'2.0
-DEV
'
;
/**
/**
* Compares a Doctrine version with the current one.
* Compares a Doctrine version with the current one.
...
...
lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php
View file @
e4d8efa3
...
@@ -76,8 +76,7 @@ EOT
...
@@ -76,8 +76,7 @@ EOT
}
}
if
(
preg_match
(
'/^select/i'
,
$sql
))
{
if
(
preg_match
(
'/^select/i'
,
$sql
))
{
$stmt
=
$conn
->
execute
(
$sql
);
$resultSet
=
$conn
->
fetchAll
(
$sql
);
$resultSet
=
$stmt
->
fetchAll
(
\Doctrine\DBAL\Connection
::
FETCH_ASSOC
);
}
else
{
}
else
{
$resultSet
=
$em
->
getConnection
()
->
executeUpdate
(
$sql
);
$resultSet
=
$em
->
getConnection
()
->
executeUpdate
(
$sql
);
}
}
...
...
lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.php
View file @
e4d8efa3
...
@@ -117,7 +117,7 @@ EOT
...
@@ -117,7 +117,7 @@ EOT
$query
->
setMaxResult
((
int
)
$maxResult
);
$query
->
setMaxResult
((
int
)
$maxResult
);
}
}
$resultSet
=
$query
->
execute
(
array
(),
$hydrationMode
);
$resultSet
=
$query
->
execute
(
array
(),
constant
(
$hydrationMode
)
);
\Doctrine\Common\Util\Debug
::
dump
(
$resultSet
,
$input
->
getOption
(
'depth'
));
\Doctrine\Common\Util\Debug
::
dump
(
$resultSet
,
$input
->
getOption
(
'depth'
));
}
}
...
...
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php
View file @
e4d8efa3
...
@@ -76,7 +76,7 @@ EOT
...
@@ -76,7 +76,7 @@ EOT
{
{
$em
=
$this
->
getHelper
(
'em'
)
->
getEntityManager
();
$em
=
$this
->
getHelper
(
'em'
)
->
getEntityManager
();
$reader
=
new
ClassMetadataReader
();
$reader
=
new
\Doctrine\ORM\Tools\
ClassMetadataReader
();
$reader
->
setEntityManager
(
$em
);
$reader
->
setEntityManager
(
$em
);
// Process source directories
// Process source directories
...
...
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php
View file @
e4d8efa3
...
@@ -77,7 +77,7 @@ EOT
...
@@ -77,7 +77,7 @@ EOT
{
{
$em
=
$this
->
getHelper
(
'em'
)
->
getEntityManager
();
$em
=
$this
->
getHelper
(
'em'
)
->
getEntityManager
();
$reader
=
new
ClassMetadataReader
();
$reader
=
new
\Doctrine\ORM\Tools\
ClassMetadataReader
();
$reader
->
setEntityManager
(
$em
);
$reader
->
setEntityManager
(
$em
);
// Process source directories
// Process source directories
...
...
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php
View file @
e4d8efa3
...
@@ -82,7 +82,7 @@ EOT
...
@@ -82,7 +82,7 @@ EOT
{
{
$em
=
$this
->
getHelper
(
'em'
)
->
getEntityManager
();
$em
=
$this
->
getHelper
(
'em'
)
->
getEntityManager
();
$reader
=
new
ClassMetadataReader
();
$reader
=
new
\Doctrine\ORM\Tools\
ClassMetadataReader
();
$reader
->
setEntityManager
(
$em
);
$reader
->
setEntityManager
(
$em
);
// Process source directories
// Process source directories
...
...
tools/sandbox/cli-config.php
View file @
e4d8efa3
<?php
<?php
#
# This configuration file is loaded by the Doctrine CLI whenever you execute
# a task. A CLI configuration file usually initializes two local variables:
#
# $em - An EntityManager instance that the CLI tasks should use.
# $globalArguments - An array of default command line arguments that are passed to all
# CLI tasks automatically when an argument is not specifically set on
# the command line.
#
# You can create several CLI configuration files with different names, for different databases.
# Every CLI task recognizes the --config=<path> option where you can specify the configuration
# file to use for a particular task. If this option is not given, the CLI looks for a file
# named "cli-config.php" (this one) in the same directory and uses that by default.
#
require_once
__DIR__
.
'/../../lib/Doctrine/Common/ClassLoader.php'
;
require_once
__DIR__
.
'/../../lib/Doctrine/Common/ClassLoader.php'
;
...
...
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