Ver código fonte

Revert "clone $object to use it in postRemove"

This reverts commit 189ab07ec655f45cf64e19be838d92711174036c.
Thomas Rabaix 13 anos atrás
pai
commit
5b45da9595
1 arquivos alterados com 2 adições e 3 exclusões
  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)