Skip to content

Commit a45e591

Browse files
author
Oleksii Korshenko
authored
Merge pull request #1218 from magento-engcom/develop-prs
Public Pull Requests #9197
2 parents c6503d4 + 5172132 commit a45e591

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Order/AbstractMassAction.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
/**
1616
* Class AbstractMassStatus
17+
* @deprecated
18+
* Never extend from this action. Implement mass-action logic in the "execute" method of your controller.
1719
*/
1820
abstract class AbstractMassAction extends \Magento\Backend\App\Action
1921
{
@@ -62,8 +64,8 @@ public function execute()
6264
}
6365

6466
/**
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
6769
*
6870
* @return null|string
6971
*/

lib/internal/Magento/Framework/Model/AbstractModel.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,9 @@ public function getCollection()
524524
* @param integer $modelId
525525
* @param null|string $field
526526
* @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.
528530
*/
529531
public function load($modelId, $field = null)
530532
{
@@ -631,7 +633,10 @@ public function setHasDataChanges($flag)
631633
*
632634
* @return $this
633635
* @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.
635640
*/
636641
public function save()
637642
{
@@ -816,7 +821,9 @@ public function afterSave()
816821
*
817822
* @return $this
818823
* @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.
820827
*/
821828
public function delete()
822829
{

0 commit comments

Comments
 (0)