From b4edcf34a40e791777f68b599cc93e1b30622082 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 22 May 2007 15:59:44 +0000 Subject: [PATCH] --- tests/Relation/ParserTestCase.php | 4 ++-- tests/classes.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Relation/ParserTestCase.php b/tests/Relation/ParserTestCase.php index 22d3ddf28..34ac96931 100644 --- a/tests/Relation/ParserTestCase.php +++ b/tests/Relation/ParserTestCase.php @@ -152,7 +152,7 @@ class Doctrine_Relation_Parser_TestCase extends Doctrine_UnitTestCase $rel = $r->getRelation('Email'); - $this->assertTrue($rel instanceof Doctrine_Relation_ForeignKey); + $this->assertTrue($rel instanceof Doctrine_Relation_LocalKey); } 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() diff --git a/tests/classes.php b/tests/classes.php index ff8be3c7f..8d2f64bdd 100644 --- a/tests/classes.php +++ b/tests/classes.php @@ -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');