Commits

matteosister  committed 93b249e

refactor

  • Participants
  • Parent commits 08649d0

Comments (0)

Files changed (1)

File lib/behavior/TaggableBehavior.php

         if (!\$this->getTags()->contains(\$theTag))
             \$this->addTag(\$theTag);
     }
-}      
-
-/**
- * Remove all tags
- * @param      PropelPDO \$con optional connection object
- */
-public function removeAllTags(PropelPDO \$con = null) {
-      // Get all tags for this object
-    \$taggings = \$this->get{$this->taggingTable->getPhpName()}s(\$con);
-    foreach (\$taggings as \$tag) {
-      \$tag->delete(\$con);
-    }
 }
 
 ";
         }
     }
 }
+            
+/**
+ * Remove all tags
+ * @param      PropelPDO \$con optional connection object
+ */
+public function removeAllTags(PropelPDO \$con = null) {
+      // Get all tags for this object
+    \$taggings = \$this->get{$this->taggingTable->getPhpName()}s(\$con);
+    foreach (\$taggings as \$tag) {
+      \$tag->delete(\$con);
+    }
+}
 
 ";
     }