瀏覽代碼

Describe the intended relationship between methods

Grégoire Paris 7 年之前
父節點
當前提交
f7b558bc12
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Admin/LifecycleHookProviderInterface.php

+ 6 - 0
Admin/LifecycleHookProviderInterface.php

@@ -20,6 +20,8 @@ namespace Sonata\AdminBundle\Admin;
 interface LifecycleHookProviderInterface
 {
     /**
+     * This method should call preUpdate, do the update, and call postUpdate.
+     *
      * @param object $object
      *
      * @return object
@@ -27,6 +29,8 @@ interface LifecycleHookProviderInterface
     public function update($object);
 
     /**
+     * This method should call prePersist, do the creation, and call postPersist.
+     *
      * @param object $object
      *
      * @return object
@@ -34,6 +38,8 @@ interface LifecycleHookProviderInterface
     public function create($object);
 
     /**
+     * This method should call preRemove, do the removal, and call postRemove.
+     *
      * @param object $object
      */
     public function delete($object);