浏览代码

Revert "clone $object to use it in postRemove"

This reverts commit 189ab07ec655f45cf64e19be838d92711174036c.
Thomas Rabaix 14 年之前
父节点
当前提交
5b45da9595
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Admin/Admin.php

+ 2 - 3
Admin/Admin.php

@@ -452,11 +452,10 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
     }
 
     public function delete($object)
-    {    
-        $media = clone $object;
+    {
         $this->preRemove($object);
         $this->modelManager->delete($object);
-        $this->postRemove($media);
+        $this->postRemove($object);
     }
 
     public function preUpdate($object)