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
b4edcf34
Commit
b4edcf34
authored
May 22, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
71338c3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ParserTestCase.php
tests/Relation/ParserTestCase.php
+2
-2
classes.php
tests/classes.php
+1
-1
No files found.
tests/Relation/ParserTestCase.php
View file @
b4edcf34
...
...
@@ -152,7 +152,7 @@ class Doctrine_Relation_Parser_TestCase extends Doctrine_UnitTestCase
$rel
=
$r
->
getRelation
(
'Email'
);
$this
->
assertTrue
(
$rel
instanceof
Doctrine_Relation_
Foreign
Key
);
$this
->
assertTrue
(
$rel
instanceof
Doctrine_Relation_
Local
Key
);
}
public
function
testGetRelationReturnsForeignKeyObjectForOneToManyRelation
()
{
...
...
@@ -162,7 +162,7 @@ class Doctrine_Relation_Parser_TestCase extends Doctrine_UnitTestCase
$r
->
bind
(
'Phonenumber'
,
$p
);
$rel
=
$r
->
getRelation
(
'Phonenumber'
);
$this
->
assertTrue
(
$rel
instanceof
Doctrine_Relation_ForeignKey
);
}
public
function
testGetRelationReturnsForeignKeyObjectForManytToManyRelation
()
...
...
tests/classes.php
View file @
b4edcf34
...
...
@@ -4,7 +4,7 @@ class Entity extends Doctrine_Record {
$this
->
ownsOne
(
'Email'
,
'Entity.email_id'
);
$this
->
ownsMany
(
'Phonenumber'
,
'Phonenumber.entity_id'
);
$this
->
ownsOne
(
'Account'
,
'Account.entity_id'
);
$this
->
hasMany
(
'Entity'
,
'EntityReference.entity1-entity2'
);
$this
->
hasMany
(
'Entity'
,
array
(
'local'
=>
'entity1'
,
'foreign'
=>
'entity2'
)
);
}
public
function
setTableDefinition
()
{
$this
->
hasColumn
(
'id'
,
'integer'
,
20
,
'autoincrement|primary'
);
...
...
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