Commit ea6c4a18 authored by zYne's avatar zYne

minor bug fixes

parent 271b4559
......@@ -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();
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment