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
21905ad7
Unverified
Commit
21905ad7
authored
Mar 13, 2019
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Connection::setAutoCommit() will return void
parent
af6909b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
Connection.php
lib/Doctrine/DBAL/Connection.php
+3
-4
ConnectionTest.php
tests/Doctrine/Tests/DBAL/ConnectionTest.php
+0
-2
No files found.
lib/Doctrine/DBAL/Connection.php
View file @
21905ad7
...
...
@@ -503,12 +503,11 @@ class Connection implements DriverConnection
*
* @see isAutoCommit
*
* @param bool $autoCommit True to enable auto-commit mode; false to disable it.
* @throws ConnectionException
* @throws DriverException
*/
public
function
setAutoCommit
(
$autoCommit
)
public
function
setAutoCommit
(
bool
$autoCommit
)
:
void
{
$autoCommit
=
(
bool
)
$autoCommit
;
// Mode not changed, no-op.
if
(
$autoCommit
===
$this
->
autoCommit
)
{
return
;
...
...
tests/Doctrine/Tests/DBAL/ConnectionTest.php
View file @
21905ad7
...
...
@@ -251,8 +251,6 @@ class ConnectionTest extends DbalTestCase
{
$this
->
connection
->
setAutoCommit
(
false
);
self
::
assertFalse
(
$this
->
connection
->
isAutoCommit
());
$this
->
connection
->
setAutoCommit
(
0
);
self
::
assertFalse
(
$this
->
connection
->
isAutoCommit
());
}
/**
...
...
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