Skip to content

Commit 7396ce3

Browse files
author
Igor Melnikov
committed
MAGETWO-54341: Add @deprecated annotation to load, save and delete methods in AbstractModel
Adding annotation
1 parent 8b81f91 commit 7396ce3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ public function getCollection()
523523
* @param integer $modelId
524524
* @param null|string $field
525525
* @return $this
526+
* @deprecated
526527
*/
527528
public function load($modelId, $field = null)
528529
{
@@ -623,6 +624,7 @@ public function setHasDataChanges($flag)
623624
*
624625
* @return $this
625626
* @throws \Exception
627+
* @deprecated
626628
*/
627629
public function save()
628630
{
@@ -807,6 +809,7 @@ public function afterSave()
807809
*
808810
* @return $this
809811
* @throws \Exception
812+
* @deprecated
810813
*/
811814
public function delete()
812815
{

0 commit comments

Comments
 (0)