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
66dce041
Commit
66dce041
authored
Aug 21, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
034744ca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
32 deletions
+32
-32
Batch.php
Doctrine/Collection/Batch.php
+1
-1
Debugger.php
Doctrine/EventListener/Debugger.php
+18
-18
Interface.php
Doctrine/EventListener/Interface.php
+9
-9
Pessimistic.php
Doctrine/Locking/Manager/Pessimistic.php
+3
-3
Unique.php
Doctrine/Validator/Unique.php
+1
-1
No files found.
Doctrine/Collection/Batch.php
View file @
66dce041
...
...
@@ -97,7 +97,7 @@ class Doctrine_Collection_Batch extends Doctrine_Collection {
$query
.=
substr
(
str_repeat
(
"?, "
,
count
(
$a
)),
0
,
-
2
);
$query
.=
(
$c
>
1
)
?
") ORDER BY "
.
$pk
[
0
]
.
" ASC"
:
""
;
$stmt
=
$this
->
table
->
get
Sess
ion
()
->
execute
(
$query
,
array_values
(
$a
));
$stmt
=
$this
->
table
->
get
Connect
ion
()
->
execute
(
$query
,
array_values
(
$a
));
foreach
(
$a
as
$k
=>
$id
)
{
$row
=
$stmt
->
fetch
(
PDO
::
FETCH_ASSOC
);
...
...
Doctrine/EventListener/Debugger.php
View file @
66dce041
...
...
@@ -110,36 +110,36 @@ class Doctrine_EventListener_Debugger extends Doctrine_EventListener {
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_PREEVICT
);
}
public
function
onClose
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_CLOSE
);
public
function
onClose
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_CLOSE
);
}
public
function
onPreClose
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_PRECLOSE
);
public
function
onPreClose
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_PRECLOSE
);
}
public
function
onOpen
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_OPEN
);
public
function
onOpen
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_OPEN
);
}
public
function
onTransactionCommit
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_COMMIT
);
public
function
onTransactionCommit
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_COMMIT
);
}
public
function
onPreTransactionCommit
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_PRECOMMIT
);
public
function
onPreTransactionCommit
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_PRECOMMIT
);
}
public
function
onTransactionRollback
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_ROLLBACK
);
public
function
onTransactionRollback
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_ROLLBACK
);
}
public
function
onPreTransactionRollback
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_PREROLLBACK
);
public
function
onPreTransactionRollback
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_PREROLLBACK
);
}
public
function
onTransactionBegin
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_BEGIN
);
public
function
onTransactionBegin
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_BEGIN
);
}
public
function
onPreTransactionBegin
(
Doctrine_
Session
$sess
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
sess
ion
,
self
::
EVENT_PREBEGIN
);
public
function
onPreTransactionBegin
(
Doctrine_
Connection
$connect
ion
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$
connect
ion
,
self
::
EVENT_PREBEGIN
);
}
public
function
onCollectionDelete
(
Doctrine_Collection
$collection
)
{
...
...
Doctrine/EventListener/Interface.php
View file @
66dce041
...
...
@@ -36,19 +36,19 @@ interface Doctrine_EventListener_Interface {
public
function
onWakeUp
(
Doctrine_Record
$record
);
public
function
onClose
(
Doctrine_
Session
$sess
ion
);
public
function
onPreClose
(
Doctrine_
Session
$sess
ion
);
public
function
onClose
(
Doctrine_
Connection
$connect
ion
);
public
function
onPreClose
(
Doctrine_
Connection
$connect
ion
);
public
function
onOpen
(
Doctrine_
Session
$sess
ion
);
public
function
onOpen
(
Doctrine_
Connection
$connect
ion
);
public
function
onTransactionCommit
(
Doctrine_
Session
$sess
ion
);
public
function
onPreTransactionCommit
(
Doctrine_
Session
$sess
ion
);
public
function
onTransactionCommit
(
Doctrine_
Connection
$connect
ion
);
public
function
onPreTransactionCommit
(
Doctrine_
Connection
$connect
ion
);
public
function
onTransactionRollback
(
Doctrine_
Session
$sess
ion
);
public
function
onPreTransactionRollback
(
Doctrine_
Session
$sess
ion
);
public
function
onTransactionRollback
(
Doctrine_
Connection
$connect
ion
);
public
function
onPreTransactionRollback
(
Doctrine_
Connection
$connect
ion
);
public
function
onTransactionBegin
(
Doctrine_
Session
$sess
ion
);
public
function
onPreTransactionBegin
(
Doctrine_
Session
$sess
ion
);
public
function
onTransactionBegin
(
Doctrine_
Connection
$connect
ion
);
public
function
onPreTransactionBegin
(
Doctrine_
Connection
$connect
ion
);
public
function
onCollectionDelete
(
Doctrine_Collection
$collection
);
public
function
onPreCollectionDelete
(
Doctrine_Collection
$collection
);
...
...
Doctrine/Locking/Manager/Pessimistic.php
View file @
66dce041
...
...
@@ -25,12 +25,12 @@ class Doctrine_Locking_Manager_Pessimistic
/**
* Constructs a new locking manager object
*
* When the CREATE_TABLES attribute of the
sess
ion on which the manager
* When the CREATE_TABLES attribute of the
connect
ion on which the manager
* is supposed to work on is set to true, the locking table is created.
*
* @param Doctrine_
Session $dataSource The database sess
ion to use
* @param Doctrine_
Connection $dataSource The database connect
ion to use
*/
public
function
__construct
(
Doctrine_
Sess
ion
$dataSource
)
public
function
__construct
(
Doctrine_
Connect
ion
$dataSource
)
{
$this
->
_dataSource
=
$dataSource
;
...
...
Doctrine/Validator/Unique.php
View file @
66dce041
...
...
@@ -10,7 +10,7 @@ class Doctrine_Validator_Unique {
public
function
validate
(
Doctrine_Record
$record
,
$key
,
$value
,
$args
)
{
$table
=
$record
->
getTable
();
$sql
=
"SELECT id FROM "
.
$table
->
getTableName
()
.
" WHERE "
.
$key
.
" = ?"
;
$stmt
=
$table
->
get
Sess
ion
()
->
getDBH
()
->
prepare
(
$sql
);
$stmt
=
$table
->
get
Connect
ion
()
->
getDBH
()
->
prepare
(
$sql
);
$stmt
->
execute
(
array
(
$value
));
return
(
!
is_array
(
$stmt
->
fetch
()));
}
...
...
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