function test_find_by_composite_pks() { $ds = DepSections::finder()->findAllByPks(array(1, 1), array(2, 5)); $this->assertEqual(count($ds), 2); $this->assertIsDepSection($ds[0], 1, 1); $this->assertIsDepSection($ds[1], 2, 5); }
function test_delete_by_composite_pks() { $finder = DepSections::finder(); $this->assertEquals($finder->deleteByPk(array(100, 101)), 0); $this->assertEquals($finder->deleteByPk(array(100, 101), array(102, 103)), 0); $this->assertEquals($finder->deleteByPk(array(array(100, 101), array(102, 103))), 0); }