Skip to content

Commit

Permalink
Merge pull request #1313 from magento-engcom/2.1-develop-prs
Browse files Browse the repository at this point in the history
Public Pull Requests

#10211
  • Loading branch information
Oleksii Korshenko authored Jul 11, 2017
2 parents 8a43b91 + a4c38ee commit 225e81f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/internal/Magento/Framework/Model/AbstractModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,9 @@ public function getCollection()
* @param integer $modelId
* @param null|string $field
* @return $this
* @deprecated
* @deprecated because entities must not be responsible for their own loading.
* Service contracts should persist entities. Use resource model "load" or collections to implement
* service contract model loading operations.
*/
public function load($modelId, $field = null)
{
Expand Down Expand Up @@ -624,7 +626,9 @@ public function setHasDataChanges($flag)
*
* @return $this
* @throws \Exception
* @deprecated
* @deprecated because entities must not be responsible for their own persistence.
* Service contracts should persist entities. Use resource model "save" to implement
* service contract persistence operations.
*/
public function save()
{
Expand Down Expand Up @@ -809,7 +813,9 @@ public function afterSave()
*
* @return $this
* @throws \Exception
* @deprecated
* @deprecated because entities must not be responsible for their own deletion.
* Service contracts should delete entities. Use resource model "delete" method to implement
* service contract persistence operations.
*/
public function delete()
{
Expand Down

0 comments on commit 225e81f

Please sign in to comment.