浏览代码

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
 interface LifecycleHookProviderInterface
 {
 {
     /**
     /**
+     * This method should call preUpdate, do the update, and call postUpdate.
+     *
      * @param object $object
      * @param object $object
      *
      *
      * @return object
      * @return object
@@ -27,6 +29,8 @@ interface LifecycleHookProviderInterface
     public function update($object);
     public function update($object);
 
 
     /**
     /**
+     * This method should call prePersist, do the creation, and call postPersist.
+     *
      * @param object $object
      * @param object $object
      *
      *
      * @return object
      * @return object
@@ -34,6 +38,8 @@ interface LifecycleHookProviderInterface
     public function create($object);
     public function create($object);
 
 
     /**
     /**
+     * This method should call preRemove, do the removal, and call postRemove.
+     *
      * @param object $object
      * @param object $object
      */
      */
     public function delete($object);
     public function delete($object);