Skip to content

Commit

Permalink
removed reloading of relation after MANY_MANY save
Browse files Browse the repository at this point in the history
for consistency leave relation as it is.
would be great if one could mark a relation cache as invalid in yii AR
issue #4 will bring it back
  • Loading branch information
cebe committed Mar 14, 2012
1 parent 565a1e9 commit f2cb691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EActiveRecordRelationBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function afterSave($event)
}

// refresh relation data
$this->owner->getRelated($name, true);
//$this->owner->getRelated($name, true); // will come back with github issue #4

break;
// HAS_MANY: if the relationship between table A and B is one-to-many, then A has many B
Expand Down

0 comments on commit f2cb691

Please sign in to comment.