File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
app/code/Magento/Sales/Controller/Adminhtml/Order
lib/internal/Magento/Framework/Model Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
/**
16
16
* Class AbstractMassStatus
17
+ * @deprecated
18
+ * Never extend from this action. Implement mass-action logic in the "execute" method of your controller.
17
19
*/
18
20
abstract class AbstractMassAction extends \Magento \Backend \App \Action
19
21
{
@@ -62,8 +64,8 @@ public function execute()
62
64
}
63
65
64
66
/**
65
- * Return component referer url
66
- * TODO: Technical dept referer url should be implement as a part of Action configuration in in appropriate way
67
+ * Return component referrer url
68
+ * TODO: Technical dept referrer url should be implement as a part of Action configuration in in appropriate way
67
69
*
68
70
* @return null|string
69
71
*/
Original file line number Diff line number Diff line change @@ -524,7 +524,9 @@ public function getCollection()
524
524
* @param integer $modelId
525
525
* @param null|string $field
526
526
* @return $this
527
- * @deprecated
527
+ * @deprecated because entities must not be responsible for their own loading.
528
+ * Service contracts should persist entities. Use resource model "load" or collections to implement
529
+ * service contract model loading operations.
528
530
*/
529
531
public function load ($ modelId , $ field = null )
530
532
{
@@ -631,7 +633,10 @@ public function setHasDataChanges($flag)
631
633
*
632
634
* @return $this
633
635
* @throws \Exception
634
- * @deprecated
636
+ *
637
+ * @deprecated because entities must not be responsible for their own persistence.
638
+ * Service contracts should persist entities. Use resource model "save" to implement
639
+ * service contract persistence operations.
635
640
*/
636
641
public function save ()
637
642
{
@@ -816,7 +821,9 @@ public function afterSave()
816
821
*
817
822
* @return $this
818
823
* @throws \Exception
819
- * @deprecated
824
+ * @deprecated because entities must not be responsible for their own deletion.
825
+ * Service contracts should delete entities. Use resource model "delete" method to implement
826
+ * service contract persistence operations.
820
827
*/
821
828
public function delete ()
822
829
{
You can’t perform that action at this time.
0 commit comments