summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Model/Metadata.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/app/Model/Metadata.php b/app/Model/Metadata.php
index ae7475c4..690b2265 100644
--- a/app/Model/Metadata.php
+++ b/app/Model/Metadata.php
@@ -101,21 +101,11 @@ abstract class Metadata extends Base
*
* @access public
* @param integer $entity_id
- * @param string $name
+ * @param string $name
* @return bool
*/
public function remove($entity_id, $name)
{
-
- $this->db->startTransaction();
-
- if (! $this->db->table(static::TABLE)->eq($this->getEntityKey(), $entity_id)->eq('name', $name)->remove()) {
- $this->db->cancelTransaction();
- return false;
- }
-
- $this->db->closeTransaction();
-
- return true;
+ return $this->db->table(static::TABLE)->eq($this->getEntityKey(), $entity_id)->eq('name', $name)->remove();
}
}