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
5f341b3a
Commit
5f341b3a
authored
Nov 10, 2013
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename method getAutoCommit to isAutoCommit
parent
4886815f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Connection.php
lib/Doctrine/DBAL/Connection.php
+3
-3
ConnectionTest.php
tests/Doctrine/Tests/DBAL/ConnectionTest.php
+4
-4
No files found.
lib/Doctrine/DBAL/Connection.php
View file @
5f341b3a
...
@@ -382,9 +382,9 @@ class Connection implements DriverConnection
...
@@ -382,9 +382,9 @@ class Connection implements DriverConnection
*
*
* @see setAutoCommit
* @see setAutoCommit
*/
*/
public
function
get
AutoCommit
()
public
function
is
AutoCommit
()
{
{
return
$this
->
autoCommit
;
return
true
===
$this
->
autoCommit
;
}
}
/**
/**
...
@@ -399,7 +399,7 @@ class Connection implements DriverConnection
...
@@ -399,7 +399,7 @@ class Connection implements DriverConnection
*
*
* @param boolean $autoCommit True to enable auto-commit mode; false to disable it.
* @param boolean $autoCommit True to enable auto-commit mode; false to disable it.
*
*
* @see
get
AutoCommit
* @see
is
AutoCommit
*/
*/
public
function
setAutoCommit
(
$autoCommit
)
public
function
setAutoCommit
(
$autoCommit
)
{
{
...
...
tests/Doctrine/Tests/DBAL/ConnectionTest.php
View file @
5f341b3a
...
@@ -223,9 +223,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
...
@@ -223,9 +223,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
/**
/**
* @group DBAL-81
* @group DBAL-81
*/
*/
public
function
test
Get
AutoCommit
()
public
function
test
Is
AutoCommit
()
{
{
$this
->
assertTrue
(
$this
->
_conn
->
get
AutoCommit
());
$this
->
assertTrue
(
$this
->
_conn
->
is
AutoCommit
());
}
}
/**
/**
...
@@ -234,9 +234,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
...
@@ -234,9 +234,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
public
function
testSetAutoCommit
()
public
function
testSetAutoCommit
()
{
{
$this
->
_conn
->
setAutoCommit
(
false
);
$this
->
_conn
->
setAutoCommit
(
false
);
$this
->
assertFalse
(
$this
->
_conn
->
get
AutoCommit
());
$this
->
assertFalse
(
$this
->
_conn
->
is
AutoCommit
());
$this
->
_conn
->
setAutoCommit
(
0
);
$this
->
_conn
->
setAutoCommit
(
0
);
$this
->
assertFalse
(
$this
->
_conn
->
get
AutoCommit
());
$this
->
assertFalse
(
$this
->
_conn
->
is
AutoCommit
());
}
}
/**
/**
...
...
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