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
a0d11413
Commit
a0d11413
authored
May 25, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
81a84bc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
Query.class.php
classes/Query.class.php
+17
-0
SessionTestCase.class.php
tests/SessionTestCase.class.php
+5
-1
No files found.
classes/Query.class.php
View file @
a0d11413
...
...
@@ -421,6 +421,23 @@ class Doctrine_Query extends Doctrine_Access {
if
(
empty
(
$row
))
continue
;
$ids
=
$this
->
tables
[
$key
]
->
getIdentifier
();
if
(
is_array
(
$ids
))
{
$emptyID
=
false
;
foreach
(
$ids
as
$id
)
{
if
(
$row
[
$id
]
==
null
)
{
$emptyID
=
true
;
break
;
}
}
if
(
$emptyID
)
continue
;
}
else
{
if
(
$row
[
$ids
]
===
null
)
continue
;
}
$name
=
$this
->
tables
[
$key
]
->
getComponentName
();
if
(
!
isset
(
$previd
[
$name
]))
...
...
tests/SessionTestCase.class.php
View file @
a0d11413
...
...
@@ -134,10 +134,11 @@ class Doctrine_SessionTestCase extends Doctrine_UnitTestCase {
$this
->
assertTrue
(
is_numeric
(
$user
->
Phonenumber
[
0
]
->
entity_id
));
$this
->
assertEqual
(
count
(
$user
->
Group
),
2
);
$user2
=
$user
;
$user
=
$this
->
objTable
->
find
(
$user
->
getID
());
$this
->
assertEqual
(
$user
->
getID
(),
$user
->
getID
());
$this
->
assertEqual
(
$user
->
getID
(),
$user
2
->
getID
());
$this
->
assertTrue
(
is_numeric
(
$user
->
getID
()));
$this
->
assertTrue
(
is_numeric
(
$user
->
email_id
));
...
...
@@ -145,6 +146,8 @@ class Doctrine_SessionTestCase extends Doctrine_UnitTestCase {
$this
->
assertTrue
(
is_numeric
(
$user
->
Phonenumber
[
0
]
->
entity_id
));
$this
->
assertTrue
(
$user
->
Phonenumber
->
count
(),
4
);
$this
->
assertEqual
(
$user
->
Group
->
count
(),
2
);
$this
->
assertTrue
(
$this
->
dbh
instanceof
Doctrine_DB
);
$user
=
$this
->
objTable
->
find
(
5
);
...
...
@@ -353,5 +356,6 @@ class Doctrine_SessionTestCase extends Doctrine_UnitTestCase {
$this
->
session
->
clear
();
$this
->
assertEqual
(
$this
->
session
->
getTables
(),
array
());
}
}
?>
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