Commit 2865efcd authored by meus's avatar meus

Adding modified testcase from #403

parent feaade58
......@@ -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
......
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