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
ea6c4a18
Commit
ea6c4a18
authored
Jun 14, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bug fixes
parent
271b4559
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
OneToOneTestCase.php
tests/Relation/OneToOneTestCase.php
+5
-1
RelationTestCase.php
tests/RelationTestCase.php
+1
-3
No files found.
tests/Relation/OneToOneTestCase.php
View file @
ea6c4a18
...
...
@@ -35,7 +35,11 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase
public
function
prepareData
()
{
}
public
function
prepareTables
()
{
}
{
$this
->
tables
=
array
(
'Record_City'
,
'Record_Country'
,
'SelfRefTest'
);
parent
::
prepareTables
();
}
public
function
testOneToOneAggregateRelationWithAliasesIsSupported
()
{
$city
=
new
Record_City
();
...
...
tests/RelationTestCase.php
View file @
ea6c4a18
...
...
@@ -69,9 +69,8 @@ class Doctrine_Relation_TestCase extends Doctrine_UnitTestCase {
$this
->
assertTrue
(
$rel
instanceof
Doctrine_Relation_LocalKey
);
}
public
function
testManyToManyRelation
()
{
$this
->
manager
->
setAttribute
(
Doctrine
::
ATTR_CREATE_TABLES
,
false
);
$user
=
new
User
();
// test that join table relations can be initialized even before the association have been initialized
try
{
$user
->
Groupuser
;
...
...
@@ -96,7 +95,6 @@ class Doctrine_Relation_TestCase extends Doctrine_UnitTestCase {
$user
=
new
User
();
$this
->
assertTrue
(
$user
->
getTable
()
->
getRelation
(
'Phonenumber'
)
instanceof
Doctrine_Relation_ForeignKey
);
$this
->
manager
->
setAttribute
(
Doctrine
::
ATTR_CREATE_TABLES
,
true
);
}
}
class
RelationTest
extends
Doctrine_Record
...
...
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