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
b6521583
Commit
b6521583
authored
Aug 07, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doctrine::compile fix
parent
536f0117
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
32 deletions
+8
-32
Doctrine.php
Doctrine.php
+7
-4
DB.php
Doctrine/DB.php
+0
-28
documentation.php
manual/documentation.php
+1
-0
No files found.
Doctrine.php
View file @
b6521583
...
...
@@ -301,8 +301,10 @@ final class Doctrine {
}
}
/**
* method for making a single file of
* most used doctrine components
* method for making a single file of most used doctrine components
*
* including the compiled file instead of multiple files (in worst
* cases dozens of files) can improve performance by order of magnitude
*
* @throws Doctrine_Exception
* @return void
...
...
@@ -339,13 +341,14 @@ final class Doctrine {
"ForeignKey"
,
"LocalKey"
,
"Association"
,
"DB"
);
"DB"
,
"DBStatement"
);
$ret
=
array
();
foreach
(
$classes
as
$class
)
{
if
(
$class
!==
"Doctrine"
)
if
(
$class
!==
'Doctrine'
)
$class
=
'Doctrine_'
.
$class
;
$file
=
self
::
$path
.
DIRECTORY_SEPARATOR
.
str_replace
(
"_"
,
DIRECTORY_SEPARATOR
,
$class
)
.
".php"
;
...
...
Doctrine/DB.php
View file @
b6521583
...
...
@@ -134,32 +134,4 @@ class Doctrine_DB extends PDO implements Countable, IteratorAggregate {
}
}
class
Doctrine_DBStatement
extends
PDOStatement
{
/**
* @param Doctrine_DB $dbh Doctrine Database Handler
*/
private
$dbh
;
/**
* @param Doctrine_DB $dbh
*/
private
function
__construct
(
Doctrine_DB
$dbh
)
{
$this
->
dbh
=
$dbh
;
}
/**
* @param array $params
*/
public
function
execute
(
array
$params
=
array
())
{
$time
=
microtime
();
try
{
$result
=
parent
::
execute
(
$params
);
}
catch
(
PDOException
$e
)
{
throw
new
Doctrine_Exception
(
$this
->
queryString
.
" "
.
$e
->
__toString
());
}
$exectime
=
(
microtime
()
-
$time
);
$this
->
dbh
->
addExecTime
(
$exectime
);
return
$result
;
}
}
?>
manual/documentation.php
View file @
b6521583
...
...
@@ -83,6 +83,7 @@ $menu = array("Getting started" =>
array
(
"Requirements"
,
"Installation"
,
"Compiling"
,
"Starting new project"
,
"Setting table definition"
=>
array
(
"Introduction"
,
...
...
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