minor bug fixes
This commit is contained in:
parent
271b45595d
commit
ea6c4a1889
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user