Skip to content

Commit

Permalink
Revert "Merge pull request #784 from ceeram/habtmmerge"
Browse files Browse the repository at this point in the history
This reverts commit fa5aa62, reversing
changes made to 88604ac.
  • Loading branch information
ceeram committed Aug 23, 2012
1 parent fa5aa62 commit c5ebbc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Model.php
Expand Up @@ -1755,7 +1755,7 @@ public function save($data = null, $validate = true, $fieldList = array()) {
$this->getEventManager()->dispatch($event);
}
if (!empty($this->data)) {
$success = array_merge($success, $this->data);
$success = Hash::merge($success, $this->data);
}
$this->data = false;
$this->_clearCache();
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Test/Case/Model/ModelWriteTest.php
Expand Up @@ -1170,7 +1170,6 @@ public function testSaveHabtm() {
$this->assertFalse(empty($result));
$result = $TestModel->save();
$this->assertFalse(empty($result));
$this->assertEquals($data['Tag'], $result['Tag']);

$TestModel->unbindModel(array('belongsTo' => array('User'), 'hasMany' => array('Comment')));
$result = $TestModel->find('first', array('fields' => array('id', 'user_id', 'title', 'body'), 'conditions' => array('Article.id' => 2)));
Expand Down

0 comments on commit c5ebbc9

Please sign in to comment.