document repositioning after delation

This commit is contained in:
Etienne Roudeix
2013-12-16 11:32:05 +01:00
parent 583cbe95b6
commit 86f1e06e42
5 changed files with 47 additions and 2 deletions

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;
}
}