From f2cb691ae828a374f2563eef2b850db8f94db013 Mon Sep 17 00:00:00 2001 From: CeBe Date: Wed, 14 Mar 2012 23:41:28 +0100 Subject: [PATCH] removed reloading of relation after MANY_MANY save 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 --- EActiveRecordRelationBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EActiveRecordRelationBehavior.php b/EActiveRecordRelationBehavior.php index 44a64d5..b276902 100644 --- a/EActiveRecordRelationBehavior.php +++ b/EActiveRecordRelationBehavior.php @@ -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