From c398e5b06d6528d4a7269b1fc5bc4a5fc1b24dc0 Mon Sep 17 00:00:00 2001 From: OKINAKA Kenshin Date: Wed, 23 Apr 2014 13:47:29 +0900 Subject: [PATCH] Comparing name instead of alias. --- Model/Behavior/TaggableBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Behavior/TaggableBehavior.php b/Model/Behavior/TaggableBehavior.php index c97b864..3ad8ca7 100644 --- a/Model/Behavior/TaggableBehavior.php +++ b/Model/Behavior/TaggableBehavior.php @@ -415,7 +415,7 @@ public function deleteTagged(Model $model) { public function afterFind(Model $model, $results, $primary = false) { extract($this->settings[$model->alias]); - if ($model->alias === $tagAlias) { + if ($model->name === $tagAlias) { return $results; }