diff -r 7a877de630fd -r 7d2fb5d7c9ff Model/Tag.php --- a/Model/Tag.php Wed Oct 19 15:44:23 2011 +0200 +++ b/Model/Tag.php Thu Oct 20 18:35:33 2011 +0200 @@ -9,7 +9,9 @@ */ namespace IRI\Bundle\WikiTagBundle\Model; - abstract class Tag implements TagInterface { + use IRI\Bundle\WikiTagBundle\Utils\WikiTagUtils; + +abstract class Tag implements TagInterface { public static $TAG_URL_STATUS_DICT = array('null_result'=>0,'redirection'=>1,'homonyme'=>2,'match'=>3); @@ -87,6 +89,7 @@ public function setLabel($label) { $this->label = $label; + $this->normalizedLabel = WikiTagUtils::normalizeTag($label); } /**