Adding modified testcase from #403
This commit is contained in:
parent
feaade5850
commit
2865efcd08
@ -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
|
class TestUser extends Doctrine_Record
|
||||||
|
Loading…
x
Reference in New Issue
Block a user