1
0
mirror of synced 2025-03-23 16:33:54 +03:00

Adding modified testcase from #403

This commit is contained in:
meus 2007-07-21 16:32:17 +00:00
parent feaade5850
commit 2865efcd08

View File

@ -37,6 +37,21 @@ class Doctrine_Relation_ManyToMany2_TestCase extends Doctrine_UnitTestCase {
}
}
public function testManyToManyJoinsandSave() {
$q = new Doctrine_Query();
$newdata = $q->select('d.*, i.*, u.*, c.*')
->from('TestMovie d, d.MovieBookmarks i, i.UserVotes u, u.User c')
->execute()
->getFirst();
$newdata['MovieBookmarks'][0]['UserVotes'][0]['User']['name'] = 'user2';
try {
$newdata->save();
$this->pass();
} catch(Doctrine_Exception $e) {
print $e;
$this->fail();
}
}
}
class TestUser extends Doctrine_Record