public function setTagsAsString($tagString)
 {
     DbFinder::from('sfSimpleBlogTag')->relatedTo($this)->delete();
     $tags = explode(' ', $tagString);
     foreach ($tags as $tag) {
         if (!$tag) {
             continue;
         }
         $tagObject = new sfSimpleBlogTag();
         $tagObject->setTag($tag);
         $tagObject->setSfBlogPostId($this->getId());
         $tagObject->setsfSimpleBlogPost($this);
         $tagObject->save();
     }
 }
 public function setTagsAsString($tagString)
 {
     $c = new Criteria();
     $c->add(sfSimpleBlogTagPeer::SF_BLOG_POST_ID, $this->getId());
     sfSimpleBlogTagPeer::doDelete($c);
     $tags = explode(',', $tagString);
     foreach ($tags as $tag) {
         if (!$tag) {
             continue;
         }
         $tagObject = new sfSimpleBlogTag();
         $tagObject->setTag($tag);
         $tagObject->setSfBlogPostId($this->getId());
         $tagObject->setSfSimpleBlogPost($this);
         $tagObject->save();
     }
 }