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
3e0ec239
Commit
3e0ec239
authored
Jul 24, 2013
by
Matty Driessen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed leading underscore of private property _defaultFetchMode because of changed visibility
parent
513228d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
Connection.php
lib/Doctrine/DBAL/Connection.php
+6
-6
Connection.php
lib/Doctrine/DBAL/Portability/Connection.php
+3
-3
No files found.
lib/Doctrine/DBAL/Connection.php
View file @
3e0ec239
...
...
@@ -177,7 +177,7 @@ class Connection implements DriverConnection
/**
* @var integer
*/
protected
$
_
defaultFetchMode
=
PDO
::
FETCH_ASSOC
;
protected
$defaultFetchMode
=
PDO
::
FETCH_ASSOC
;
/**
* Initializes a new instance of the Connection class.
...
...
@@ -373,7 +373,7 @@ class Connection implements DriverConnection
*/
public
function
setFetchMode
(
$fetchMode
)
{
$this
->
_
defaultFetchMode
=
$fetchMode
;
$this
->
defaultFetchMode
=
$fetchMode
;
}
/**
...
...
@@ -648,7 +648,7 @@ class Connection implements DriverConnection
throw
DBALException
::
driverExceptionDuringQuery
(
$ex
,
$statement
);
}
$stmt
->
setFetchMode
(
$this
->
_
defaultFetchMode
);
$stmt
->
setFetchMode
(
$this
->
defaultFetchMode
);
return
$stmt
;
}
...
...
@@ -701,7 +701,7 @@ class Connection implements DriverConnection
throw
DBALException
::
driverExceptionDuringQuery
(
$ex
,
$query
,
$this
->
resolveParams
(
$params
,
$types
));
}
$stmt
->
setFetchMode
(
$this
->
_
defaultFetchMode
);
$stmt
->
setFetchMode
(
$this
->
defaultFetchMode
);
if
(
$logger
)
{
$logger
->
stopQuery
();
...
...
@@ -745,7 +745,7 @@ class Connection implements DriverConnection
$stmt
=
new
ResultCacheStatement
(
$this
->
executeQuery
(
$query
,
$params
,
$types
),
$resultCache
,
$cacheKey
,
$realKey
,
$qcp
->
getLifetime
());
}
$stmt
->
setFetchMode
(
$this
->
_
defaultFetchMode
);
$stmt
->
setFetchMode
(
$this
->
defaultFetchMode
);
return
$stmt
;
}
...
...
@@ -810,7 +810,7 @@ class Connection implements DriverConnection
throw
DBALException
::
driverExceptionDuringQuery
(
$ex
,
$args
[
0
]);
}
$statement
->
setFetchMode
(
$this
->
_
defaultFetchMode
);
$statement
->
setFetchMode
(
$this
->
defaultFetchMode
);
if
(
$logger
)
{
$logger
->
stopQuery
();
...
...
lib/Doctrine/DBAL/Portability/Connection.php
View file @
3e0ec239
...
...
@@ -113,7 +113,7 @@ class Connection extends \Doctrine\DBAL\Connection
public
function
executeQuery
(
$query
,
array
$params
=
array
(),
$types
=
array
(),
QueryCacheProfile
$qcp
=
null
)
{
$stmt
=
new
Statement
(
parent
::
executeQuery
(
$query
,
$params
,
$types
,
$qcp
),
$this
);
$stmt
->
setFetchMode
(
$this
->
_
defaultFetchMode
);
$stmt
->
setFetchMode
(
$this
->
defaultFetchMode
);
return
$stmt
;
}
...
...
@@ -124,7 +124,7 @@ class Connection extends \Doctrine\DBAL\Connection
public
function
prepare
(
$statement
)
{
$stmt
=
new
Statement
(
parent
::
prepare
(
$statement
),
$this
);
$stmt
->
setFetchMode
(
$this
->
_
defaultFetchMode
);
$stmt
->
setFetchMode
(
$this
->
defaultFetchMode
);
return
$stmt
;
}
...
...
@@ -138,7 +138,7 @@ class Connection extends \Doctrine\DBAL\Connection
$stmt
=
call_user_func_array
(
array
(
$this
->
_conn
,
'query'
),
func_get_args
());
$stmt
=
new
Statement
(
$stmt
,
$this
);
$stmt
->
setFetchMode
(
$this
->
_
defaultFetchMode
);
$stmt
->
setFetchMode
(
$this
->
defaultFetchMode
);
return
$stmt
;
}
...
...
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