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
f2484d17
Commit
f2484d17
authored
May 22, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
7d10dbe1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
13 deletions
+7
-13
Access.php
lib/Doctrine/Access.php
+1
-1
Connection.php
lib/Doctrine/Connection.php
+0
-1
UnitOfWork.php
lib/Doctrine/Connection/UnitOfWork.php
+2
-2
Statement.php
lib/Doctrine/Db/Statement.php
+0
-4
Lib.php
lib/Doctrine/Lib.php
+2
-3
Record.php
lib/Doctrine/Record.php
+1
-1
Relation.php
lib/Doctrine/Relation.php
+1
-1
No files found.
lib/Doctrine/Access.php
View file @
f2484d17
...
@@ -126,7 +126,7 @@ abstract class Doctrine_Access implements ArrayAccess
...
@@ -126,7 +126,7 @@ abstract class Doctrine_Access implements ArrayAccess
if
(
!
isset
(
$offset
))
{
if
(
!
isset
(
$offset
))
{
$this
->
add
(
$value
);
$this
->
add
(
$value
);
}
else
{
}
else
{
$this
->
set
(
$offset
,
$value
);
$this
->
set
(
$offset
,
$value
);
}
}
}
}
/**
/**
...
...
lib/Doctrine/Connection.php
View file @
f2484d17
...
@@ -696,7 +696,6 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
...
@@ -696,7 +696,6 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
}
catch
(
Doctrine_Adapter_Exception
$e
)
{
}
catch
(
Doctrine_Adapter_Exception
$e
)
{
}
catch
(
PDOException
$e
)
{
}
}
catch
(
PDOException
$e
)
{
}
print
Doctrine_Lib
::
formatSql
(
$query
);
$this
->
rethrowException
(
$e
);
$this
->
rethrowException
(
$e
);
}
}
/**
/**
...
...
lib/Doctrine/Connection/UnitOfWork.php
View file @
f2484d17
...
@@ -187,7 +187,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
...
@@ -187,7 +187,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
foreach
(
$record
->
getReferences
()
as
$k
=>
$v
)
{
foreach
(
$record
->
getReferences
()
as
$k
=>
$v
)
{
$rel
=
$record
->
getTable
()
->
getRelation
(
$k
);
$rel
=
$record
->
getTable
()
->
getRelation
(
$k
);
if
(
$rel
instanceof
Doctrine_Relation_Association
)
{
if
(
$rel
instanceof
Doctrine_Relation_Association
)
{
$v
->
save
(
$this
->
conn
);
$v
->
save
(
$this
->
conn
);
$assocTable
=
$rel
->
getAssociationTable
();
$assocTable
=
$rel
->
getAssociationTable
();
...
@@ -196,7 +196,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
...
@@ -196,7 +196,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
.
' WHERE '
.
$rel
->
getForeign
()
.
' = ?'
.
' WHERE '
.
$rel
->
getForeign
()
.
' = ?'
.
' AND '
.
$rel
->
getLocal
()
.
' = ?'
;
.
' AND '
.
$rel
->
getLocal
()
.
' = ?'
;
$this
->
query
(
$r
->
getIncremented
(),
$record
->
getIncremented
(
));
$this
->
conn
->
execute
(
$query
,
array
(
$r
->
getIncremented
(),
$record
->
getIncremented
()
));
}
}
foreach
(
$v
->
getInsertDiff
()
as
$r
)
{
foreach
(
$v
->
getInsertDiff
()
as
$r
)
{
$assocRecord
=
$assocTable
->
create
();
$assocRecord
=
$assocTable
->
create
();
...
...
lib/Doctrine/Db/Statement.php
View file @
f2484d17
...
@@ -205,10 +205,6 @@ class Doctrine_Db_Statement implements Doctrine_Adapter_Statement_Interface
...
@@ -205,10 +205,6 @@ class Doctrine_Db_Statement implements Doctrine_Adapter_Statement_Interface
$skip
=
$this
->
adapter
->
getListener
()
->
onPreExecute
(
$event
);
$skip
=
$this
->
adapter
->
getListener
()
->
onPreExecute
(
$event
);
if
(
!
$skip
)
{
if
(
!
$skip
)
{
if
(
isset
(
$params
[
0
])
&&
is_array
(
$params
[
0
]))
{
print_r
(
$params
);
throw
new
Exception
();
}
$this
->
stmt
->
execute
((
array
)
$params
);
$this
->
stmt
->
execute
((
array
)
$params
);
$this
->
adapter
->
incrementQueryCount
();
$this
->
adapter
->
incrementQueryCount
();
}
}
...
...
lib/Doctrine/Lib.php
View file @
f2484d17
...
@@ -239,10 +239,9 @@ class Doctrine_Lib
...
@@ -239,10 +239,9 @@ class Doctrine_Lib
{
{
$r
[]
=
"<pre>"
;
$r
[]
=
"<pre>"
;
$r
[]
=
get_class
(
$collection
);
$r
[]
=
get_class
(
$collection
);
$r
[]
=
'data : '
.
Doctrine
::
dump
(
$collection
->
getData
(),
false
);
//$r[] = 'snapshot : ' . Doctrine::dump($collection->getSnapshot());
foreach
(
$collection
as
$key
=>
$record
)
{
$r
[]
=
"Key : "
.
$key
.
" ID : "
.
$record
->
obtainIdentifier
();
}
$r
[]
=
"</pre>"
;
$r
[]
=
"</pre>"
;
return
implode
(
"
\n
"
,
$r
);
return
implode
(
"
\n
"
,
$r
);
}
}
...
...
lib/Doctrine/Record.php
View file @
f2484d17
...
@@ -1168,7 +1168,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
...
@@ -1168,7 +1168,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
{
{
if
(
$id
===
false
)
{
if
(
$id
===
false
)
{
$this
->
_id
=
array
();
$this
->
_id
=
array
();
$this
->
_data
=
$this
->
_filter
->
cleanData
(
$this
->
_data
);
$this
->
_data
=
$this
->
_filter
->
cleanData
(
$this
->
_data
);
$this
->
_state
=
Doctrine_Record
::
STATE_TCLEAN
;
$this
->
_state
=
Doctrine_Record
::
STATE_TCLEAN
;
$this
->
_modified
=
array
();
$this
->
_modified
=
array
();
}
elseif
(
$id
===
true
)
{
}
elseif
(
$id
===
true
)
{
...
...
lib/Doctrine/Relation.php
View file @
f2484d17
...
@@ -54,7 +54,7 @@ abstract class Doctrine_Relation
...
@@ -54,7 +54,7 @@ abstract class Doctrine_Relation
const
MANY_COMPOSITE
=
3
;
const
MANY_COMPOSITE
=
3
;
const
ONE
=
0
;
const
ONE
=
0
;
const
MANY
=
1
;
const
MANY
=
2
;
protected
$definition
=
array
(
'alias'
=>
true
,
protected
$definition
=
array
(
'alias'
=>
true
,
'foreign'
=>
true
,
'foreign'
=>
true
,
...
...
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