Merge branch 'cleanmaster' into modules

This commit is contained in:
Etienne Roudeix
2013-12-16 11:32:54 +01:00
5 changed files with 47 additions and 2 deletions

View File

@@ -50,4 +50,14 @@ class CategoryDocument extends BaseCategoryDocument
{
return $this->getCategoryId();
}
public function preDelete(ConnectionInterface $con = null)
{
$this->reorderBeforeDelete(
array(
"category_id" => $this->getCategoryId(),
)
);
return true;
}
}

View File

@@ -50,4 +50,14 @@ class ContentDocument extends BaseContentDocument
{
return $this->getContentId();
}
public function preDelete(ConnectionInterface $con = null)
{
$this->reorderBeforeDelete(
array(
"content_id" => $this->getContentId(),
)
);
return true;
}
}

View File

@@ -50,4 +50,14 @@ class FolderDocument extends BaseFolderDocument
{
return $this->getFolderId();
}
public function preDelete(ConnectionInterface $con = null)
{
$this->reorderBeforeDelete(
array(
"folder_id" => $this->getFolderId(),
)
);
return true;
}
}

View File

@@ -51,4 +51,14 @@ class ProductDocument extends BaseProductDocument
return $this->getProductId();
}
public function preDelete(ConnectionInterface $con = null)
{
$this->reorderBeforeDelete(
array(
"product_id" => $this->getProductId(),
)
);
return true;
}
}